Skip to content

Commit b0fc0a7

Browse files
committed
final changes
1 parent fa0fa9d commit b0fc0a7

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
@@ -585,6 +585,7 @@ Bug Fixes
585585
- Bug in ``DataFrame.sort_values()`` when sorting by multiple columns where one column is of type ``int64`` and contains ``NaT`` (:issue:`14922`)
586586
- Bug in ``DataFrame.reindex()`` in which ``method`` was ignored when passing ``columns`` (:issue:`14992`)
587587
- Bug in ``pd.to_numeric()`` in which float and unsigned integer elements were being improperly casted (:issue:`14941`, :issue:`15005`)
588+
- Cleaned up ``PeriodIndex`` constructor, including raising on floats more consistently (:issue:`13277`)
588589
- Bug in ``pd.read_csv()`` in which the ``dialect`` parameter was not being verified before processing (:issue:`14898`)
589590
- Bug in ``pd.read_fwf`` where the skiprows parameter was not being respected during column width inference (:issue:`11256`)
590591
- Bug in ``pd.read_csv()`` in which missing data was being improperly handled with ``usecols`` (:issue:`6710`)

pandas/indexes/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def _new_Index(cls, d):
8888
""" This is called upon unpickling, rather than the default which doesn't
8989
have arguments and breaks __new__
9090
"""
91-
from pandas.types.generic import ABCPeriodIndex
91+
# required for backward compat, because PI can't be instantiated with
92+
# ordinals through __new__ GH #13277
9293
if issubclass(cls, ABCPeriodIndex):
9394
if d['data'].dtype == 'int64':
9495
values = d.pop('data')

0 commit comments

Comments
 (0)