Skip to content

Instantly share code, notes, and snippets.

@nickinack
Last active November 22, 2020 06:09
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 nickinack/023b98360b89ec8dc416bcff9de9cda4 to your computer and use it in GitHub Desktop.
Save nickinack/023b98360b89ec8dc416bcff9de9cda4 to your computer and use it in GitHub Desktop.
x = df1.drop("ViolentCrimesPerPop", axis=1)
y = df1["ViolentCrimesPerPop"]
x_train, x_test, y_train, y_test = train_test_split(x, y, train_size=0.8, random_state=24)
print(x_train.shape , y_train.shape)
print(x_test.shape , y_test.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment