Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created January 27, 2021 07:03
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 letthedataconfess/f85459e5df5fe8a16f2f59884c051d2f to your computer and use it in GitHub Desktop.
Save letthedataconfess/f85459e5df5fe8a16f2f59884c051d2f to your computer and use it in GitHub Desktop.
sentiment analysis
x = df.iloc[:,1].values # Features variable
y = df.iloc[:,0].values # Target variable
from sklearn.model_selection import train_test_split
x_train,x_test,y_train,y_test = train_test_split(x,y,random_state=0,test_size=0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment