I have two numpy.ndarrays: Y_train
and Y_pred_train
. Both are of the shape (799, 1).
The following line of code returns an exception 'If using all scalar values, you must pass an index':
df_train = pd.DataFrame(data = {'Y_Actual_train' : Y_train, 'Y_Pred_train' : Y_pred_train})
But these arrays are not scallars or what. I don't understand.