modin.pandas.DatetimeIndex.weekday¶
- property DatetimeIndex.weekday: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L451-L471)¶
The day of the week with Monday=0, Sunday=6.
Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex.
- Return type:
An Index Containing integers indicating the day number.
Examples
>>> idx = pd.date_range('2016-12-31', '2017-01-08', freq='D') >>> idx.dayofweek Index([5, 6, 0, 1, 2, 3, 4, 5, 6], dtype='int64')