File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ Bug Fixes
291
291
- Bug in ``describe()`` when passing a numpy array which does not contain the median to the ``percentiles`` keyword argument (:issue:`14908`)
292
292
- Bug in ``DataFrame.sort_values()`` when sorting by multiple columns where one column is of type ``int64`` and contains ``NaT`` (:issue:`14922`)
293
293
- Bug in ``DataFrame.reindex()`` in which ``method`` was ignored when passing ``columns`` (:issue:`14992`)
294
+ - Cleaned up ``PeriodIndex`` constructor, including raising on floats more consistently (:issue:`13277`)
294
295
295
296
296
297
- Bug in ``pd.read_msgpack()`` in which ``Series`` categoricals were being improperly processed (:issue:`14901`)
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ def _new_Index(cls, d):
86
86
""" This is called upon unpickling, rather than the default which doesn't
87
87
have arguments and breaks __new__
88
88
"""
89
- from pandas .types .generic import ABCPeriodIndex
89
+ # required for backward compat, because PI can't be instantiated with
90
+ # ordinals through __new__ GH #13277
90
91
if issubclass (cls , ABCPeriodIndex ):
91
92
if d ['data' ].dtype == 'int64' :
92
93
values = d .pop ('data' )
You can’t perform that action at this time.
0 commit comments