我的是excel表格的本地数据集,x有4个特征,y有一个标签,每次运行到train_test_split时都会报错:Expected 2D array, got scalar array instead: array=nan. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
请问各路大神,该怎么解决。网上很多reshape(-1,1)也已经试了,没用