I need to sort my data frame by dates recorded as strings so when I plot my values the dates are plotted in order. I grouped it by date grouped = datanew.groupby(['Date']).sum()
so sort_values('Date')
doesn't work. I tried this
grouped = datanew.sort_values(by='Date',ascending=False).groupby('Date').sum()
I also tried this:
date = sort.reset_index()
sortd = date.sort_values(by='Date', ascending=False)
but in this case, it sorts my df by index not by 'Date' which puzzles me.
Will appreciate your help.