print(y_train.shape) c,r = y_train.shape y_train = y_train.values.reshape(c,) #DataFrame没有reshape所以要用.value.reshape