Open TobyRoseman opened 6 years ago
Same problem here. I had to use df = df.replace({pd.np.nan: None})
to workaround this issue.
This is still an issue in TuriCreate 6.4
I had the same error but a different cause. My pandas dataframe was the result of a groupby and aggregating with pd.Series.mode to find the most frequent value. Even though running df.dtypes
gave the expected output and there were no NaN values, somehow the dataframe from this operation was not accepted by SFrame. I just explicitly converted every column to its proper datatype, and now all is good.
If a pandas data frame has an object column that contains NaN value, we can not convert it to an SFrame, and we get an unhelpful error message.
Turicreate version: 4.3.2 Python version: 3.6.5 (this is likely a bug only in Python 3)
Simple repo code with stack trace: