pandas.Timestamp.month_name#

Timestamp.month_name()#

返回指定地区的时间戳的月份名称。

参数
locale字符串,默认无(英语区域设置)

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

退货
应力

示例

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

类似于 pd.NaT

>>> pd.NaT.month_name()
nan