Skip to content

Instantly share code, notes, and snippets.

@SajidLhessani
Created October 6, 2021 04:28
Show Gist options
  • Save SajidLhessani/7f9fc77e65a3c0ba5497a0d1d5076429 to your computer and use it in GitHub Desktop.
Save SajidLhessani/7f9fc77e65a3c0ba5497a0d1d5076429 to your computer and use it in GitHub Desktop.
# Use drop method to drop the columns
X = df.drop(['Close', 'Signal', 'High',
'Low', 'Volume', 'Ret'], axis=1)
# Create a variable which contains all the 'Signal' values
y = df['Signal']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment