pandas.Timestamp.weekday — pandas 2.2.3 documentation (original) (raw)
- API reference
- pandas arrays, scalars, and data types
- pandas.Times...
Timestamp.weekday()#
Return the day of the week represented by the date.
Monday == 0 … Sunday == 6.
Examples
ts = pd.Timestamp('2023-01-01') ts Timestamp('2023-01-01 00:00:00') ts.weekday() 6