### your code of day 24 has error in the input of train datasets information ### the right code is :- #### from sklearn.model_selection import train_test_split #### x_train , x_test ,y_train ,y_test = train_test_split( df[['Age', 'EstimatedSalary']],df['Purchased'], test_size = 0.4,random_state=0) #### x_train.shape , x_test.shape
your code of day 24 has error in the input of train datasets information
the right code is :-
from sklearn.model_selection import train_test_split
x_train , x_test ,y_train ,y_test = train_test_split( df[['Age', 'EstimatedSalary']],df['Purchased'], test_size = 0.4,random_state=0)
x_train.shape , x_test.shape