modin.pandas.DatetimeIndex.month_name¶
- DatetimeIndex.month_name(locale: str = None) Index[source]¶
Return the month names with specified locale.
- Parameters:
locale (str, optional) – Locale determining the language in which to return the month 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 month names.
Examples
Using the
localeparameter you can set a different locale language, for example:idx.month_name(locale='pt_BR.utf8')will return month names in Brazilian Portuguese language.