I have a dataframe
year month v_0 v_1 ... v_27 v_28 v_29 v_30
0 1919 03 0.0 0.0 ... 0.0 13.0 0.0 0.0
1 1919 04 5.0 0.0 ... 0.0 0.0 0.0 -9999.0
2 1919 05 0.0 0.0 ... 0.0 0.0 0.0 0.0
The headers are year,month and every day in the month. I want to convert the seperate headers for every day into a single column which would be the day number for every month followed by the data. It should look something like this.
Year Month Day Value
1919 3 1 0
1919 3 2 0