I have a dataframe with the following values
Date, value
2017/1/1, 5
2017/4/1, 6
2017/4/5, 12
2017/7/2, 15
2018/4/1, 50
2018/7/7, 11
2017/1/1, 5
I would like to convert this dataframe to the following format where the columns are the year/month ad the values are in the rows
2017/1 2017/4 2017/7 2018/1 2018/4 2018/7
5 6 15 5 50 11
12
How can I do that?
2018/1/1given the output.