Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 6, 2019 09:46
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 prateekjoshi565/bc1efa66fbb89081efb7987c57ac2f98 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/bc1efa66fbb89081efb7987c57ac2f98 to your computer and use it in GitHub Desktop.
Split data
from sklearn.model_selection import train_test_split
# split data into train and test set
train,test= train_test_split(deu_eng,test_size=0.2,random_state= 12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment