I am would like to sort the values in my groupby by Actual Cost in ascending order, but I keep getting the wrong result.
This is my code:
D16 = Dec16.groupby('PRACTICE', sort=False)["Actual Cost"].sum()
D16
And it returns this:
PRACTICE
1 19585.09
3 144741.12
5 32622.69
6 138969.68
10 33973.04
Does anyone know how I can sort this correctly?