I have the following dataframe
The index is days of the weeks and the columns are numbers from 0 to 23 (hours of the day) The cell values are counts
0 1 2 ....
Mon 2 2 4
Tue 5 6 2
Wed 3 1 1
.
.
.
The dataframe is a result of
df.crosstab(df['DoW'],df['Hour'])
I tried using
hourdow.reindex(["Mon", "Tue", "Wed","Thu","Fri","Sat",'Sun'])
To get the Dataframe sorted but when i plot the graph is still end up with the index being sorted alphabetically on the heatmap. Is there anyway to reorder the rows?