Skip to content
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

BUG: preserve timezone info when writing empty tz-aware frame to HDF5 #37069

Merged
merged 3 commits into from
Oct 15, 2020

Conversation

arw2019
Copy link
Member

@arw2019 arw2019 commented Oct 12, 2020

Will handle series case in follow-on

arw2019 added a commit to arw2019/pandas that referenced this pull request Oct 12, 2020
arw2019 added a commit to arw2019/pandas that referenced this pull request Oct 12, 2020
@jreback
Copy link
Contributor

jreback commented Oct 14, 2020

looks like dupe of #37072

@jreback jreback closed this Oct 14, 2020
@jreback jreback added Duplicate Report Duplicate issue or pull request IO HDF5 read_hdf, HDFStore Timezones Timezone data dtype labels Oct 14, 2020
@jreback jreback added this to the No action milestone Oct 14, 2020
@jreback jreback reopened this Oct 14, 2020
@jreback
Copy link
Contributor

jreback commented Oct 14, 2020

sorry just read the comment on the other PR

@jreback jreback removed the Duplicate Report Duplicate issue or pull request label Oct 14, 2020
@jreback jreback removed this from the No action milestone Oct 14, 2020
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.

kk, can you add a whatsnew note, in bug fixes I/O, ping on green

@jreback jreback added this to the 1.2 milestone Oct 14, 2020
@arw2019
Copy link
Member Author

arw2019 commented Oct 15, 2020

Green.

@@ -296,6 +296,16 @@ def test_timezones_fixed(setup_path):
tm.assert_frame_equal(result, df)


@pytest.mark.parametrize("dtype", ["datetime64[ns, UTC]", "datetime64[ns, US/Eastern]"])
Copy link
Contributor

Choose a reason for hiding this comment

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

next PR can you change this to use the tz_aware_fixture

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@jreback jreback merged commit a838759 into pandas-dev:master Oct 15, 2020
@jreback
Copy link
Contributor

jreback commented Oct 15, 2020

thanks @arw2019

arw2019 added a commit to arw2019/pandas that referenced this pull request Oct 15, 2020
arw2019 added a commit to arw2019/pandas that referenced this pull request Oct 17, 2020
arw2019 added a commit to arw2019/pandas that referenced this pull request Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO HDF5 read_hdf, HDFStore Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: HDFStore failures on timezone-aware data
2 participants