VOOZH about

URL: https://www.geeksforgeeks.org/pandas/pandas-series-dt-month_name/

⇱ Pandas Series dt.month_name() | Get Month Name From DateTime Series - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pandas Series dt.month_name() | Get Month Name From DateTime Series

Last Updated : 11 Jul, 2025

Pandas dt.month_name() method returns the month names of the DateTimeIndex with specified locale.

Example

Output

👁 dt.month_name() method output

Syntax

Syntax: Series.dt.month_name(locale=None) 

Parameter 

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

Returns: Index of month names

How to Get the Month Names from the DateTime Series

To get the names of the months from the DateTime objects in a Pandas Series we use the dt.month_name() method of the Pandas library in Python.

Let us understand it better with an example:

Example:

Use the Series.dt.month_name() function to return the month names of the underlying DateTime data in the given series object. Return the names of the month in French language.

Output :

👁 datetime series created

Now we will use the Series.dt.month_name() function to return the names of the month of each timestamp in the given series object.

Output :

👁 month names returned

As we can see in the output, the Series.dt.month_name() function has successfully returned the names of the month in the specified language.

Comment

Explore