0

How can the values in X become this in X_train after train_test_split() function? How can I avoid that?

enter image description here

  • You can rename your variables then pass it back into the test train split function X1 = X and y1 = y then use those variable names in the_test train_split() – Spooked Oct 01 '20 at 23:18
  • which variables do you actually want to split? I think you want to run train_test_split() on the X at the top rather than the X, that you have assigned from the dataframe? – Spooked Oct 02 '20 at 00:02

0 Answers0