pandas.PeriodIndex.dayofweek#
- property PeriodIndex.dayofweek[source]#
The day of the week with Monday=0, Sunday=6.
See also
PeriodIndex.dayThe days of the period.
PeriodIndex.day_of_weekThe day of the week with Monday=0, Sunday=6.
PeriodIndex.day_of_yearThe ordinal day of the year.
PeriodIndex.dayofweekThe day of the week with Monday=0, Sunday=6.
PeriodIndex.dayofyearThe ordinal day of the year.
PeriodIndex.weekThe week ordinal of the year.
PeriodIndex.weekdayThe day of the week with Monday=0, Sunday=6.
PeriodIndex.weekofyearThe week ordinal of the year.
Examples
>>> idx = pd.PeriodIndex(["2023-01-01", "2023-01-02", "2023-01-03"], freq="D") >>> idx.weekday Index([6, 0, 1], dtype='int64')