pyspark.pandas.Series.dt.month_name#

dt.month_name(locale=None)#

Return the month names of the series with specified locale.

Parameters:
localestr, optional

Locale determining the language in which to return the month name. Default is English locale.

Returns:
Series

Series of month names.

Examples

>>> series = ps.Series(pd.date_range(start='2018-01', freq='ME', periods=3))
>>> series
0   2018-01-31
1   2018-02-28
2   2018-03-31
dtype: datetime64[ns]
>>> series.dt.month_name()
0     January
1    February
2       March
dtype: object