Dataframe grouping with sorting

1

I'm having a hard time and I do not know how to go any further. I have a DataFrame where I am doing a grouping for a few columns and in the aggregate of it I take one of these columns and use the size to make a count, however I would like to display this list in descending order. Could someone give me a light?

boarded_vl.groupby(['day_of_week', 'boarded_at']).aggregate({'boarded_at' : np.size})
    
asked by anonymous 31.03.2018 / 03:38

0 answers