Skip to content

Commit 068b676

Browse files
DOC: Fix ES01 for pandas.Period.year
1 parent 924573a commit 068b676

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_libs/tslibs/period.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,9 @@ cdef class _Period(PeriodMixin):
21322132
"""
21332133
Return the year this Period falls on.
21342134

2135+
The year is derived from the internal representation of the Period
2136+
based on its ordinal value and frequency.
2137+
21352138
Returns
21362139
-------
21372140
int

0 commit comments

Comments
 (0)