pandas.Timestamp.isoweekday#
- Timestamp.isoweekday()#
Return the day of the week represented by the date.
Monday == 1 … Sunday == 7.
See also
Timestamp.weekdayReturn the day of the week with Monday=0, Sunday=6.
Timestamp.isocalendarReturn a tuple containing ISO year, week number and weekday.
datetime.date.isoweekdayEquivalent method in datetime module.
Examples
>>> ts = pd.Timestamp('2023-01-01 10:00:00') >>> ts Timestamp('2023-01-01 10:00:00') >>> ts.isoweekday() 7