Python Error. Expected 2D array, got 1D array instead, how to fix?

前端 未结 0 1737
梦如初夏
梦如初夏 2020-12-16 06:18

My dataframe consists of two columns, speed and power.

X = df[(\'speed\')]
y = df[(\'power\')]

from sklearn.model_selection import train_test_split
X_train,          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题