Is it feasible to sort pandas dataframe by values of a column, but also by index?
If you sort a pandas dataframe by values of a column, you can get the resultant dat
I believe that the original order from sort_values is kept even when sort_index is applied, so this should work:
sort_values
sort_index
df.sort_values('count', ascending=False).sort_index(level=[index_level1, index_level2])