Skip to content

BUG: fix to_timestamp out_of_bounds #27916

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 6 commits into from
Aug 20, 2019

Conversation

jbrockmendel
Copy link
Member

@@ -30,9 +30,6 @@ def test_asfreq_near_zero_weekly(self):
assert week1.asfreq("D", "E") >= per1
assert week2.asfreq("D", "S") <= per2

@pytest.mark.xfail(
reason="GH#19643 period_helper asfreq functions fail to check for overflows"
)
def test_to_timestamp_out_of_bounds(self):
# GH#19643, currently gives Timestamp('1754-08-30 22:43:41.128654848')
Copy link
Member

Choose a reason for hiding this comment

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

you can remove this comment as well I think?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@jreback jreback added Compat pandas objects compatability with Numpy or Python functions Period Period data type labels Aug 15, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

i guess this is a bug fix, can you add a note, ok for 0.25.1 i think.

@jbrockmendel
Copy link
Member Author

added whatsnew, found this also fixes the analogous bug in PeriodIndex, need to add test for that

@jbrockmendel
Copy link
Member Author

updated with additional test

@jbrockmendel
Copy link
Member Author

@jorisvandenbossche gentle ping

@jorisvandenbossche jorisvandenbossche added this to the 0.25.1 milestone Aug 20, 2019
@jorisvandenbossche jorisvandenbossche merged commit 0a7bb2a into pandas-dev:master Aug 20, 2019
@jorisvandenbossche
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Period.asfreq issue caused(?) by C division rules
3 participants