model.plot_components(forecast)
It is giving me an attribute error.
pandas.__version__ = '1.0.0'
There is no such method called weekday_name in pandas version 1.0.0
Thanks for raising this! It looks like this is a change in pandas 1.0.0, which was released yesterday. We'll have to fix this, but in a backwards compatible way that still works with pandas 0.23.4 (the current min requirement).
The immediate work-around is to downgrade to pandas 0.25.3, which is the latest compatible version.
sudo pip3 install --upgrade pandas==0.25.3
it happens to me too.
pandas : 1.0.0
I replaced weekday_name to day_name in plot.py file as romulomadu indicated but it is not solution. It rise new error TypeError: object of type 'method' has no len()
This was fixed in #1304, so you can also install from github to get an immediate fix.
When you install it with conda, the issue still persists.
When you install it with conda, the issue still persists.
Indeed, it seems that the 'conda install' method fails to create a proper env for prophet.
Is there a solution for conda install?
@ghuname what I did is downgrade panda version to pandas==0.25.3 and then I works without problems.
As of yesterday, the fix has been pushed to both PyPI and conda forge in the latest version (0.6). So fbprophet==0.6 will work with pandas>=1.0.0, and you shouldn't see this error after upgrading.
If you do see this error, please make sure that you're using the latest version (0.6):
import fbprophet
print(fbprophet.__version__)
I am using pandas : 1.0.3
I fixed this problem by replacing the weekday_name to weekday in plot.py file line#288.
I hope this helps.