GithubHelp home page GithubHelp logo

Comments (9)

VictorHM avatar VictorHM commented on June 25, 2024 1

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.

julietxiao avatar julietxiao commented on June 25, 2024

I also met this error... Have you solve this problem?

from data-analysis.

yoonguk510 avatar yoonguk510 commented on June 25, 2024

from data-analysis.

WillKoehrsen avatar WillKoehrsen commented on June 25, 2024

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.

sebdau avatar sebdau commented on June 25, 2024

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.

sebdau avatar sebdau commented on June 25, 2024

#22 Solved the type problem for me!

from data-analysis.

htuhxf avatar htuhxf commented on June 25, 2024

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.

yoonguk510 avatar yoonguk510 commented on June 25, 2024

from data-analysis.

angelotc avatar angelotc commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.