pandas.PeriodIndex.day#
- property PeriodIndex.day[source]#
The days of the period.
Returns the day-of-month component for each period in the index.
See also
PeriodIndex.day_of_weekThe day of the week with Monday=0, Sunday=6.
PeriodIndex.day_of_yearThe ordinal day of the year.
PeriodIndex.days_in_monthThe number of days in the month.
Examples
>>> idx = pd.PeriodIndex(["2020-01-31", "2020-02-28"], freq="D") >>> idx.day Index([31, 28], dtype='int64')