Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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