pandas.PeriodIndex.weekday#
- propertyPeriodIndex.weekday[source] #
The day of the week with Monday=0, Sunday=6.
See also
PeriodIndex.day
The days of the period.
PeriodIndex.day_of_week
The day of the week with Monday=0, Sunday=6.
PeriodIndex.day_of_year
The ordinal day of the year.
PeriodIndex.dayofweek
The day of the week with Monday=0, Sunday=6.
PeriodIndex.dayofyear
The ordinal day of the year.
PeriodIndex.week
The week ordinal of the year.
PeriodIndex.weekday
The day of the week with Monday=0, Sunday=6.
PeriodIndex.weekofyear
The 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')