sort python grouped df code example
Example: Group based sort pandas
df_scored.sort_values('Score', ascending= False).sort_index(level='Index1', sort_remaining=False)
df_scored.sort_values('Score', ascending= False).sort_index(level='Index1', sort_remaining=False)