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 @@ -295,6 +295,7 @@ Bug Fixes
295
295
- Bug in ``DataFrame.reindex()`` in which ``method`` was ignored when passing ``columns`` (:issue:`14992`)
296
296
- Bug in ``pd.to_numeric()`` in which float and unsigned integer elements were being improperly casted (:issue:`14941`, :issue:`15005`)
297
297
- Bug in ``pd.read_csv()`` in which the ``dialect`` parameter was not being verified before processing (:issue:`14898`)
298
+ - Cleaned up ``PeriodIndex`` constructor, including raising on floats more consistently (:issue:`13277`)
298
299
299
300
300
301
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