I want to use sort_index to sort value_counts()
The df I have is like this
a
1 low
2 high
3 vhigh
...
I want to counts columns a and sort them by index of low,med,high,vhigh
df['a'].value_counts() med 20 high 30 low 10 vhigh 15
If I add sort_index,it will be like this
high 30 low 10 med 20 vhigh 15
That's what I want
low 10 med 20 high 30 vhigh 15
vhigh 15at the bottom?