Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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