Skip to content

Instantly share code, notes, and snippets.

@Hephaestus12
Last active June 30, 2020 14:00
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 Hephaestus12/23ab9f39b91ab354d67ddd4937ce19b8 to your computer and use it in GitHub Desktop.
Save Hephaestus12/23ab9f39b91ab354d67ddd4937ce19b8 to your computer and use it in GitHub Desktop.
train = df.sample(frac=0.8, random_state=200)
test = df.drop(train.index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment