In python How would you write a function that groups a column data in decile and determine which decile is the second highest?