pandas.Timestamp.day_name#
- Timestamp.day_name(locale=None)#
Return the day name of the Timestamp with specified locale.
This method returns the full name of the day of the week (e.g., ‘Monday’, ‘Tuesday’) for the given Timestamp. The locale can be specified to return the name in a particular language.
- Parameters:
- localestr, default None (English locale)
Locale determining the language in which to return the day name.
- Returns:
- str
See also
Timestamp.day_of_weekReturn day of the week.
Timestamp.day_of_yearReturn day of the year.
Examples
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') >>> ts.day_name() 'Saturday'
Analogous for
pd.NaT:>>> pd.NaT.day_name() nan