-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
AmbigousTimeError on Timestamp.floor during dst change #23521
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
Comments
A workaround I found:
|
cc @mroeschke I believe we might have fixed this in #22647? @Safrone : Thanks for filing this! Can you installing the |
I cloned the latest version and am still having issues:
INSTALLED VERSIONScommit: f0877ec |
As the error notes, you need to specify the
|
Ah yes you are correct, thank you. |
I think that the problems here are deeper, and cannot be solved by tacking the
The thing is:
it seems that pandas strips the time offset while processing the time, which is very strange since the offset is crucial information. |
Hi All - is this still an issue? It is for us. This only occurs on our Windows machines though. I do not get this error on Linux (Ubuntu 20) |
Can someone please explain why this has been closed ? It still seems to be an issue (at least, on Windows). In my view, adamkpickering's #23521 (comment) perfectly describes the issue - and is still valid. |
I also still run into this on Pandas |
Code Sample, a copy-pastable example if possible
Problem description
AmbiguousTimeError
thrown on floor of timestamp that leads to time within dst change.Similar issues happen on
ceil
andround
:Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-38-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: None
pip: 10.0.1
setuptools: 39.1.0
Cython: None
numpy: 1.15.2
scipy: None
pyarrow: None
xarray: None
IPython: 7.0.1
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
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
The text was updated successfully, but these errors were encountered: