Skip to content

[BUG]: Fix bug with pre epoch normalization #36557

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

Merged
merged 7 commits into from
Sep 26, 2020
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Sep 22, 2020

The fix propsed by @jbrockmendel worked.

Hope the test is in the right place

@phofl phofl added Regression Functionality that used to work in a prior pandas version Datetime Datetime data dtype labels Sep 22, 2020
@dsaxton dsaxton added this to the 1.1.3 milestone Sep 22, 2020
Copy link
Member

@dsaxton dsaxton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @phofl

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @phofl generally lgtm

Hope the test is in the right place

That seems a reasonable location for the issue code sample.

but the MWE would be Timestamp("1969-01-01 09:00:00").normalize()

maybe add that somewhere in pandas\tests\scalar\timestamp\test_timestamp.py

@phofl
Copy link
Member Author

phofl commented Sep 23, 2020

@simonjayhawkins Added the test

@jreback jreback merged commit e088ea3 into pandas-dev:master Sep 26, 2020
@jreback
Copy link
Contributor

jreback commented Sep 26, 2020

thanks @phofl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG:unexpected behavior of pandas 1.1.1 dt.normalize() on pre-epoch dates
5 participants