Skip to content

BUG: DataFrame.resample raised AmbiguousTimeError at a midnight DST transition #33137

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 3 commits into from
Apr 3, 2020

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Bug Resample resample method Timezones Timezone data dtype labels Mar 30, 2020
@mroeschke mroeschke added this to the 1.1 milestone Mar 30, 2020
@@ -1440,6 +1440,24 @@ def test_downsample_across_dst_weekly():
tm.assert_series_equal(result, expected)


def test_downsample_dst_at_midnight():
# GH 25758
Copy link
Member

Choose a reason for hiding this comment

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

Is the DST transition at midnight on the 4th?

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

lgtm. @jbrockmendel merge when ready.

@mroeschke
Copy link
Member Author

Going to merge, but let me know if there is any followup I should do.

@mroeschke mroeschke merged commit cf9ec78 into pandas-dev:master Apr 3, 2020
@mroeschke mroeschke deleted the resample_dst_midnight branch April 3, 2020 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Resample resample method Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

groupby with daily frequency fails with AmbiguousTimeError on clock change day in Cuba
3 participants