Skip to content

Commit cd57fa5

Browse files
committed
Fix docstrings for pandas.Period.month
1 parent 392f78a commit cd57fa5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pandas/_libs/tslibs/period.pyx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,12 +2055,6 @@ cdef class _Period(PeriodMixin):
20552055
>>> period.month
20562056
nan
20572057

2058-
Handle a case where the Period object is invalid or empty, which results in `NaN`:
2059-
2060-
>>> period = pd.Period('nan', 'M')
2061-
>>> period.month
2062-
nan
2063-
20642058
Notes
20652059
-----
20662060
The month is determined based on the `ordinal` and `base` attributes of the Period.

0 commit comments

Comments
 (0)