Skip to content

Instantly share code, notes, and snippets.

@merishnaSuwal
Created November 9, 2020 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merishnaSuwal/80421ed4cb9a1f9cf86ec45ed0dea2b7 to your computer and use it in GitHub Desktop.
Save merishnaSuwal/80421ed4cb9a1f9cf86ec45ed0dea2b7 to your computer and use it in GitHub Desktop.
# Features
X = dataset.drop('target', axis = 1) # selecting all columns except the target
# Target variable
y = dataset['target']
# Print the shape
print(X.shape, y.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment