pandas.Timestamp.month_name #

时间戳。月份名称(区域设置=无)#

返回具有指定区域设置的时间戳的月份名称。

参数:
locale str,默认无(英语区域设置)

区域设置确定返回月份名称的语言。

返回:
斯特

例子

>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651')
>>> ts.month_name()
'March'

类似pd.NaT:

>>> pd.NaT.month_name()
nan