@@ -439,19 +439,16 @@ def asfreq(self, freq=None, how='E'):
439439 --------
440440 >>> pidx = pd.period_range('2010-01-01', '2015-01-01', freq='A')
441441 >>> pidx
442- <class 'pandas.core.indexes.period.PeriodIndex'>
443- [2010, ..., 2015]
444- Length: 6, Freq: A-DEC
442+ PeriodIndex(['2010', '2011', '2012', '2013', '2014', '2015'],
443+ dtype='period[A-DEC]', freq='A-DEC')
445444
446445 >>> pidx.asfreq('M')
447- <class 'pandas.core.indexes.period.PeriodIndex'>
448- [2010-12, ..., 2015-12]
449- Length: 6, Freq: M
446+ PeriodIndex(['2010-12', '2011-12', '2012-12', '2013-12', '2014-12',
447+ '2015-12'], dtype='period[M]', freq='M')
450448
451449 >>> pidx.asfreq('M', how='S')
452- <class 'pandas.core.indexes.period.PeriodIndex'>
453- [2010-01, ..., 2015-01]
454- Length: 6, Freq: M
450+ PeriodIndex(['2010-01', '2011-01', '2012-01', '2013-01', '2014-01',
451+ '2015-01'], dtype='period[M]', freq='M')
455452 """
456453 how = libperiod ._validate_end_alias (how )
457454
0 commit comments