Skip to content

Commit cdf36b2

Browse files
Removed dateparseerror example from period.year
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent f52c610 commit cdf36b2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: pandas/_libs/tslibs/period.pyx

-5
Original file line numberDiff line numberDiff line change
@@ -2076,11 +2076,6 @@ cdef class _Period(PeriodMixin):
20762076
>>> period = pd.Period('nan', 'M')
20772077
>>> period.year
20782078
nan
2079-
2080-
Period object with an invalid format:
2081-
2082-
>>> period = pd.Period('invalid', 'M')
2083-
# Will raise a DateParseError
20842079
"""
20852080
base = self._dtype._dtype_code
20862081
return pyear(self.ordinal, base)

0 commit comments

Comments
 (0)