I have a df where I need to predict the dependent variable (numeric) for each day in the next 7 days. The train data is like:
df.head()
Date X1 X2 X3 Y
2004-11-20 453.0 654 989 716 # row 1
2004-11-21 716.0 878 886 605
2004-11-22 605.0 433 775 555
2004-11-23 555.0 453 564 680
2004-11-24 680.0 645 734 713
In specific, for date 2004-11-20 in row 1 I need a Y predicted value for each day of the next 7 days, not just the present day (variable Y), and considering that to predict the 5th day starting at 2004-11-20 I'm not going to have the data available of the next 4 days starting at 2004-11-20.
I have been thinking with the idea of creating 7 more variables ("Y+1day", "Y+2day" and so on) but I will need to create a training df for each day as machine learning techniques only return one variable as output. Is there an easier way?
I'm using skikit-learn library for modeling.