I fixed it by using

```
 ## data pre-processing
y_train = np.array(df_train['target'].to_numpy().reshape(-1,1), 
dtype=np.float32)
y_test = np.array(df_test['target'].to_numpy().reshape(-1,1), dtype=np.float32)
X_train = np.array(df_train.drop(['target'], axis=1).to_numpy(), 
dtype=np.float32)
X_test = np.array(df_test.drop(['target'], axis=1).to_numpy(), dtype=np.float32)
```





---
[Visit 
Topic](https://discuss.mxnet.apache.org/t/load-data-from-csv-file-with-pandas-and-feed-to-nn-models/6787/3)
 or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.mxnet.apache.org/email/unsubscribe/972525f40d1edd35076777b79397de7608414de45fb976199c2088e516d5c0b8).

Reply via email to