Skip to content

Commit dc315ee

Browse files
DOC: fix ES01 for pandas.Period.day (pandas-dev#60853)
1 parent 59e324f commit dc315ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/_libs/tslibs/period.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,12 @@ cdef class _Period(PeriodMixin):
21402140
"""
21412141
Get day of the month that a Period falls on.
21422142

2143+
The `day` property provides a simple way to access the day component
2144+
of a `Period` object, which represents time spans in various frequencies
2145+
(e.g., daily, hourly, monthly). If the period's frequency does not include
2146+
a day component (e.g., yearly or quarterly periods), the returned day
2147+
corresponds to the first day of that period.
2148+
21432149
Returns
21442150
-------
21452151
int

0 commit comments

Comments
 (0)