The month_name()function of Pandas.Timestamp—an equivalent of Python's datetime object—is used to return the name of the month of the Timestamp object.
Timestamp.month_name()
The month_name() function takes a single optional parameter value, locale, which represents the language in which the month name is returned.
The month_name() function returns a str, which represents the month name.
# A code to illustrate the month_name() function in Pandas# importing the pandas libraryimport pandas as pd# creating a Timestamp objecta = pd.Timestamp(2022, 4, 29)# obtaining the month name of the Timestamp objectprint(a.month_name())
Pandas.Timestamp() function to create a Timestamp object, a.month_name() function to obtain and print the month name of the date time object.