Course Name: Machine Learning for Options Trading, Section No: 4, Unit No: 7, Unit type: Notebook
=> in Define the Target Value
Create the target variable
spy['return'] = spy.Close.pct_change(1).shift(-1)
The pct change is already the previos day - actual day => the shift of additional -1 will give the future value to the ml ?