My Initial DataFrame Looks like given below(just for example, though it contains different values with more number of inputs)
close
1
2
3
4
5
6
Now I need to select hyper parameter and based on that I need to create new DataFrames every time. Suppose my N starts with N=1 then the new dataFrame should look like
x1 Y
1 2
2 3
3 4
4 5
and it will continue till the length of the original dataFrame. Once it done it will move to the next hyperparameter with N=2 and then my new dataFrame should look like
X1 X2 Y
1 2 3
2 3 4
3 4 5
4 5 6
and soon, it will continue till certain hyper parameter N.