Comments (9)
I think this is an issue with the version of Pandas. Which version of Pandas were you using when you got the error?
I think you are spot on. I got this message regarding this:
FutureWarning: Comparing Series of datetimes with 'datetime.date'. Currently, the
'datetime.date' is coerced to a datetime. In the future pandas will
not coerce, and a TypeError will be raised. To retain the current
behavior, convert the 'datetime.date' to a datetime with
'pd.Timestamp'.
In the installation I have for Stocker, this is the version of Pandas and its dependencies Note that it is in a conda env that makes everything work (I had troubles making fbprophet work due to versions of pystan and others):
>>> pd.show_versions(as_json=False)
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: None
pip: 18.1
setuptools: 40.6.3
Cython: 0.29.3
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
Hope this helps. Will try to go into it to see if I can modify Stocker.py to use new Pandas method. Regards.
from data-analysis.
I also met this error... Have you solve this problem?
from data-analysis.
from data-analysis.
I think this is an issue with the version of Pandas. Which version of Pandas were you using when you got the error?
from data-analysis.
I'm having the same problem and went through similar install issues as described by @VictorHM.
I'm new to Python so I'd apppriciate if one could point out a solution or workaround.
Thanks a lot!
from data-analysis.
#22 Solved the type problem for me!
from data-analysis.
I got the same problem with pandas0.23.4, just as described by VictorHM.
Solved the problem by "pd.to_datetime(df['date'], format='%Y%m%d').apply(lambda x: x.date())".the stackoverflow link is here
from data-analysis.
from data-analysis.
I think you are spot on. I got this message regarding this:
FutureWarning: Comparing Series of datetimes with 'datetime.date'. Currently, the
'datetime.date' is coerced to a datetime. In the future pandas will
not coerce, and a TypeError will be raised. To retain the current
behavior, convert the 'datetime.date' to a datetime with
'pd.Timestamp'.
wrapping the datetime in pd.Timestamp(<your_date>)
worked for me to get around that warning.
from data-analysis.
Related Issues (20)
- Date cover upto only 2018-03-27 HOT 9
- Comparison google trends: ConversionError: Failed to convert value(s) to axis units:
- Graphs don't seem to render in Google Colab HOT 3
- medium
- Kernel crashes when loading data for the widgets HOT 2
- Confused about some aspects of grid search reccommendations.
- KeyError: 'User_ID' In: /Data-Analysis/bayesian-lr/Bayesian Linear Regression Demonstration
- can you share links to each code folder pls?
- cannot import name 'Stocker' from 'stocker'
- cannot import name 'Stocker' from 'stocker' HOT 3
- Any plans to add stocker into PyPI ? HOT 2
- 'DataFrame' object has no attribute 'ix' HOT 3
- Data is outdated. (Stocker) HOT 2
- The plots are not displayed "Plotly Whirlwind Introduction.ipynb"
- Stocker library error
- why occur AttributeError: 'StanModel' object has no attribute 'fit_class'? HOT 1
- How to add new data in, or train new data HOT 4
- ValueError" occurred with the message "rotation must be 'vertical', 'horizontal' or a number, not 45"
- cloning this repository does not retrieve data: over data quota error HOT 1
- Data analysis
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 data-analysis.