Skip to content

Instantly share code, notes, and snippets.

@sagarhowal
Created December 25, 2017 10:42
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 sagarhowal/0385ef0d882d77dfd0170fb89e36e53b to your computer and use it in GitHub Desktop.
Save sagarhowal/0385ef0d882d77dfd0170fb89e36e53b to your computer and use it in GitHub Desktop.
Separating X and y
#Seperating dependent and independent variables.
X = dataset.iloc[:, 2:32].values #Note: Exclude Last column with all NaN values.
y = dataset.iloc[:, 1].values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment