Closed eromoe closed 5 years ago
It looks like one of the columns in df_extra is a string. Could you check:
df_extra.dtypes
The issue is that we convert the extra regressor columns to numeric, but that happens after initializing the scales (which is where this error is being raised). That needs to be moved up to before we initialize scales.
https://github.com/facebook/prophet/blob/master/python/fbprophet/forecaster.py#L290
Fix pushed to PyPI.
Hi,
I meet a strange situation, I am trying to scroll fit my data to see if prophet is good enough. My code is like:
But got error :
Then I set breakpoint and dump the data:
df.iloc[:i-1]
is fine : 1.xlsxdf.iloc[:i]
is bad : 2.xlsxI found that
df.iloc[i]
's extra data is0 0 0 0 0 0
, may be by this ? And trainning was fine withoutadd_regressor
.