I have these values in dataset in a pandas dataframe column
col1
0.74
0.77
0.72
0.65
0.24
0.07
0.21
0.05
0.09
I want to get a new column of six elements as list in new columns as rows (by shifting one values at a time in list)
This is the col that I want to get.
col2
[0.74,0.77,0.72,0.65,0.24,0.07]
[0.77,0.72,0.65,0.24,0.07,0.21]
[0.72,0.65,0.24,0.07,0.21,0.05]
[0.65,0.24,0.07,0.21,0.05,0.09]
[0.24,0.07,0.21,0.05,0.09,NaN]
[0.07,0.21,0.05,0.09,NaN,NaN]