From 1e788664af4c58289861b3f302259a2506ef0941 Mon Sep 17 00:00:00 2001 From: kiwirob Date: Wed, 31 May 2017 15:50:39 +0100 Subject: [PATCH 1/2] DOC: Remove incorrect elements of PeriodIndex docstring See #9056. --- pandas/core/indexes/period.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 15fd9b7dc2b6a..2f9d1c95fa995 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -125,15 +125,7 @@ def _new_PeriodIndex(cls, **d): class PeriodIndex(DatelikeOps, DatetimeIndexOpsMixin, Int64Index): """ Immutable ndarray holding ordinal values indicating regular periods in - time such as particular years, quarters, months, etc. A value of 1 is the - period containing the Gregorian proleptic datetime Jan 1, 0001 00:00:00. - This ordinal representation is from the scikits.timeseries project. - - For instance, - # construct period for day 1/1/1 and get the first second - i = Period(year=1,month=1,day=1,freq='D').asfreq('S', 'S') - i.ordinal - ===> 1 + time such as particular years, quarters, months, etc. Index keys are boxed to Period objects which carries the metadata (eg, frequency information). From 51c329bf01dcf2a4a01ad2a6c74d39c7c40df35a Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 1 Jun 2017 14:58:51 -0500 Subject: [PATCH 2/2] Removed trailing space --- pandas/core/indexes/period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 2f9d1c95fa995..f8af6c8303d99 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -125,7 +125,7 @@ def _new_PeriodIndex(cls, **d): class PeriodIndex(DatelikeOps, DatetimeIndexOpsMixin, Int64Index): """ Immutable ndarray holding ordinal values indicating regular periods in - time such as particular years, quarters, months, etc. + time such as particular years, quarters, months, etc. Index keys are boxed to Period objects which carries the metadata (eg, frequency information).