diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 70312f2e61445..b0b87d98ce518 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -439,19 +439,16 @@ def asfreq(self, freq=None, how='E'): -------- >>> pidx = pd.period_range('2010-01-01', '2015-01-01', freq='A') >>> pidx - - [2010, ..., 2015] - Length: 6, Freq: A-DEC + PeriodIndex(['2010', '2011', '2012', '2013', '2014', '2015'], + dtype='period[A-DEC]', freq='A-DEC') >>> pidx.asfreq('M') - - [2010-12, ..., 2015-12] - Length: 6, Freq: M + PeriodIndex(['2010-12', '2011-12', '2012-12', '2013-12', '2014-12', + '2015-12'], dtype='period[M]', freq='M') >>> pidx.asfreq('M', how='S') - - [2010-01, ..., 2015-01] - Length: 6, Freq: M + PeriodIndex(['2010-01', '2011-01', '2012-01', '2013-01', '2014-01', + '2015-01'], dtype='period[M]', freq='M') """ how = libperiod._validate_end_alias(how)