We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52c610 commit cdf36b2Copy full SHA for cdf36b2
pandas/_libs/tslibs/period.pyx
@@ -2076,11 +2076,6 @@ cdef class _Period(PeriodMixin):
2076
>>> period = pd.Period('nan', 'M')
2077
>>> period.year
2078
nan
2079
-
2080
- Period object with an invalid format:
2081
2082
- >>> period = pd.Period('invalid', 'M')
2083
- # Will raise a DateParseError
2084
"""
2085
base = self._dtype._dtype_code
2086
return pyear(self.ordinal, base)
0 commit comments