I am trying to figure out how to sort the Series generated as a result of a groupby aggregation in a smart way.
I generate an aggregation of my DataFrame like this:<
Use sort_values, i.e. means = means.sort_values(). [Pandas v0.17+]
sort_values
means = means.sort_values()
pandas used to use order() method: means = means.order().
order()
means = means.order()