diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index cdeca432ffc91..4f5dfc75a20bf 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2076,11 +2076,6 @@ cdef class _Period(PeriodMixin): >>> period = pd.Period('nan', 'M') >>> period.year nan - - Period object with an invalid format: - - >>> period = pd.Period('invalid', 'M') - # Will raise a DateParseError """ base = self._dtype._dtype_code return pyear(self.ordinal, base)