pandas.DatetimeIndex.month_name

pandas 3.1.1 · Index objects · method

Get month names, optionally using a specified locale.

Call syntax

DatetimeIndex.month_name(locale=None)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
locale Optional
Positional or keyword
Default None
str

Choose which locale is used for calendar names or display.

Returns

Index