I have an pandas data frame that looks like:
df = DataFrame({'id':['a132','a132','b5789','b5789','c1112','c1112'], 'value':[0,0,0,0,0,0,]})
df = df.groupby('id').sum()
value
id
a132 0
b5789 0
c1112 0
I would like to sort it so that it looks like:
value
id
b5789 0
c1112 0
a132 0
which is looking at the number(although string) and sorting as descending