Skip to content

Commit a725fbf

Browse files
forbdonutri938
authored andcommitted
BUG: Fix read of py3 PeriodIndex DataFrame HDF made in py2 (pandas-dev#16781) (pandas-dev#16790)
In Python3, reading a DataFrame with a PeriodIndex from an HDF file created in Python2 would incorrectly return a DataFrame with an Int64Index.
1 parent 8f8e3d6 commit a725fbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: doc/source/whatsnew/v0.20.3.txt

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Bug Fixes
4444
- Bug in a DataFrame/Series with a ``TimedeltaIndex`` when slice indexing (:issue:`16637`)
4545
- Bug in reindexing on an empty ``CategoricalIndex`` (:issue:`16770`)
4646
- Fixed a pytest marker failing downstream packages' tests suites (:issue:`16680`)
47+
- Fixed compat with loading a ``DataFrame`` with a ``PeriodIndex``, from a ``format='fixed'`` HDFStore, in Python 3, that was written in Python 2 (:issue:`16781`)
4748

4849
Conversion
4950
^^^^^^^^^^

0 commit comments

Comments
 (0)