I'm trying to manipulate my dataframe so that the column names (ex Monday, Tuesday) can be used in the x-axis of the seaborn scatterplot (shown below). Right now I have this:
week Sun Mon Tues Wed Thur Fri Sat
0 2016-05-08 0 0 0 3 1 5 1
1 2016-05-15 0 0 0 1 0 0 1
2 2016-05-22 0 0 1 2 3 0 0
3 2016-05-29 0 0 1 0 0 0 0
4 2016-06-05 0 0 3 19 19 14 1
5 2016-06-12 0 40 30 14 0 0 0
6 2016-06-19 3 16 10 26 38 17 17
7 2016-06-26 0 4 3 1 1 4 0
The only thing I can think of is to change my data format so that it becomes something like this:
week day amount
2016-05-08 Sun 1
2016-05-15 Sun 30
2016-05-22 Sun 0
2016-05-29 Mon 6
2016-06-19 Mon 40
I'm a bit confused how I would unstack it.
Any direction of how I can accomplish that would be greatly appreciated.