Skip to content

Commit ce69eda

Browse files
committed
Revert "Removed dateparseerror example from period.year"
This reverts commit cdf36b2.
1 parent 033ba12 commit ce69eda

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/_libs/tslibs/period.pyx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,11 +2075,6 @@ cdef class _Period(PeriodMixin):
20752075
>>> period = pd.Period('nan', 'M')
20762076
>>> period.month
20772077
nan
2078-
2079-
Period object with an invalid format:
2080-
2081-
>>> period = pd.Period('invalid', 'M')
2082-
# Will raise an DateParseError
20832078
"""
20842079
base = self._dtype._dtype_code
20852080
return pyear(self.ordinal, base)

0 commit comments

Comments
 (0)