From 8057cf5e6f6f123d37f47c903e645a0aeed27980 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 5 Feb 2025 12:49:40 +0530 Subject: [PATCH] DOC: fix ES01 for pandas.Period.day --- pandas/_libs/tslibs/period.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index f697180da5eeb..087d3119c36f2 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2140,6 +2140,12 @@ cdef class _Period(PeriodMixin): """ Get day of the month that a Period falls on. + The `day` property provides a simple way to access the day component + of a `Period` object, which represents time spans in various frequencies + (e.g., daily, hourly, monthly). If the period's frequency does not include + a day component (e.g., yearly or quarterly periods), the returned day + corresponds to the first day of that period. + Returns ------- int