Skip to content

Commit 183f2bc

Browse files
committed
final changes
1 parent 776f406 commit 183f2bc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v0.20.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ Bug Fixes
295295
- Bug in ``DataFrame.reindex()`` in which ``method`` was ignored when passing ``columns`` (:issue:`14992`)
296296
- Bug in ``pd.to_numeric()`` in which float and unsigned integer elements were being improperly casted (:issue:`14941`, :issue:`15005`)
297297
- 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`)
298299

299300

300301

pandas/indexes/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def _new_Index(cls, d):
8686
""" This is called upon unpickling, rather than the default which doesn't
8787
have arguments and breaks __new__
8888
"""
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
9091
if issubclass(cls, ABCPeriodIndex):
9192
if d['data'].dtype == 'int64':
9293
values = d.pop('data')

0 commit comments

Comments
 (0)