Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom holidays not showing in components plot or forecast dataframe #1641

Closed
alvin-chan opened this issue Aug 26, 2020 · 4 comments
Closed

Comments

@alvin-chan
Copy link

Custom holidays not showing in components plot or forecast dataframe when running the Peyton Manning example, with playoff and superbowl events.

Running the following package versions, python 3.8.5 MacOS:

pandas==1.1.1
matplotlib==3.3.1
holidays==0.10.3
fbprophet==0.6

Running the following Peyton Manning Holidays notebook from the master repo shows a components plot with no forcings on the holiday component, and all values are zeroes in the holidays, playoff and superbowl columns.

https://github.com/facebook/prophet/blob/master/notebooks/seasonality,_holiday_effects,_and_regressors.ipynb

This does not seem to be expected behaviour - and doesn't match the plots produced in the web-hosted notebook.

@bletham
Copy link
Contributor

bletham commented Aug 28, 2020

The issue here is a breaking change in pandas 1.1.0 that broke the holidays functionality (more discussion in #1617).

The issue has been fixed in the current code here on github, so if you install this, it will work. We're in the process of pushing out the fixed version to PyPI, so you will be able to install it from there very soon. Alternatively, if you downgrade pandas to 1.0.5 then it will work with the current pypi version (0.6).

@alvin-chan
Copy link
Author

Thank you for the swift reply @bletham ! Looking forward to the fixed version on PyPI, thanks again for acting quickly on this! Will try and pandas downgrade, appreciate the pointer and reference to existing ticket!

@harmbuisman
Copy link

The issue here is a breaking change in pandas 1.1.0 that broke the holidays functionality (more discussion in #1617).

The issue has been fixed in the current code here on github, so if you install this, it will work. We're in the process of pushing out the fixed version to PyPI, so you will be able to install it from there very soon. Alternatively, if you downgrade pandas to 1.0.5 then it will work with the current pypi version (0.6).

Is there a fix other than enforcing pandas to be 1.0.5 as was done in #1623? I need pandas 1.1, so I would not be able to use fbprophet then.

@bletham
Copy link
Contributor

bletham commented Sep 3, 2020

The fix has been pushed to pypi in the new v0.7, so upgrading fbprophet will take care of it!

@bletham bletham closed this as completed Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants