Comments (9)
Hi @datafool ,
I met the same problem with you, environment python 2.7
and anaconda 2.2
. I solved it by upgrading pandas
from version 0.17.1
to 0.19.2
.
I think you can upgrade pandas
to the newest version by python -m pip install --upgrade pandas
and the original code should work.
from prophet.
Hi @abuccts thanks! yes upgrade to newest version works fine. I think requirement of latest version of pandas should go in setup.py so that pandas is upgraded automatically, rather than we facing the problem and then updating it
from prophet.
I agree with you. Either changing pandas.Series.apply
to pandas.Series.dt.days
or adding a minimum pandas
version will fix this issue.
I can make a PR for this. But which solution will be better?
from prophet.
I will go with pandas.Series.dt.days, as this is pandas inbuilt so all the heavy lifting will happen at the same place, unlike apply, and as per my understanding apply would be slower than internal pandas functions
from prophet.
That's right. pandas.Series.dt.days
is more efficient, but is unavailable in some old versions of pandas
, I have no idea about the minimum version.
from prophet.
I checked the pandas
documentation back till 0.15, pandas.Series.dt.days
is available from 0.16 onward. Also, 0.16 came back in June 2015, chances are everyone might have shifted to a higher version.
from prophet.
Thanks for diagnosing and fixing this! Will merge the PR soon.
from prophet.
Nice ! I met same problem today.
from prophet.
The problem is still there. Using pandas 0.20.1 (also tested on pandas 0.19.2) and fbprphet 0.1.1.
from prophet.
Related Issues (20)
- Python3 setuptools error
- ImportError: cannot import name 'main' from 'cmdstanpy.install_cxx_toolchain' HOT 1
- Cross validation creating error when y data ends before cutoff end + horizon - appeared after update from 0.7.1 to 1.1.5
- forecaster.preprocess() may introduce unwanted behavior for NaN history values in 1.1.5 HOT 2
- How to set up an error term to follow Student t-distribution?
- Adding 2 predictions with their respective confidence intervals
- Time zone issue when fitting prophet in R HOT 1
- Minimum Supported Python version is 3.8, not 3.7
- Fitting hangs in Prophet 1.1.5
- weired x label in model.plot_components(forecast)
- ries
- Hierarchical Model
- Model fit behaves very differently between `datetime64[ns]` and `datetime64[ms]`.
- Amplifying the amplitude of seasonality
- regressor_coefficients not finding regr_names HOT 1
- sample_model() not loading
- Forecast is off by 1
- Prophet Optimization error HOT 1
- Can't seem to forecast values correctly for future dates (few values are coming zero and few are not matching the historical pattern)
- Facebook Prophet ignores manually passed changepoints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prophet.