after spliting x_train ,y_train .
x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size = 0.3)
print(x_train.shape,y_train.shape)
(354, 13) (354,)
Again I need to join ytrain
column to xtrain
.Price is new column
x_train['Price']=y_train
but this does not work
I am trying to use iloc like following but it gives warning
x_train['price']=y_train.iloc[0:354]
please help me out regarding this