pyspark.pandas.DatetimeIndex.month_name¶
-
DatetimeIndex.
month_name
(locale: Optional[str] = None) → pyspark.pandas.indexes.base.Index¶ Return the month names of the DatetimeIndex with specified locale.
- Parameters
- localestr, optional
Locale determining the language in which to return the month name. Default is English locale.
- Returns
- Index
Index of month names.
Examples
>>> idx = ps.date_range(start='2018-01', freq='M', periods=3) >>> idx.month_name() Index(['January', 'February', 'March'], dtype='object')