modin.pandas.DatetimeIndex.day_name¶
- DatetimeIndex.day_name(locale: str = None) Index[source]¶
Return the day names with specified locale.
- Parameters:
locale (str, optional) – Locale determining the language in which to return the day name. Default is English locale (
'en_US.utf8'). Use the commandlocale -aon your terminal on Unix systems to find your locale language code.- Return type:
Index of day names.
Examples
Using the
localeparameter you can set a different locale language, for example:idx.day_name(locale='pt_BR.utf8')will return day names in Brazilian Portuguese language.