mars.dataframe.Series.dt.month_name#
- Series.dt.month_name(*args, **kwargs)#
Return the month names of the DateTimeIndex with specified locale.
- 参数
locale (str, optional) – Locale determining the language in which to return the month name. Default is English locale.
- 返回
Index of month names.
- 返回类型
实际案例
>>> import mars.dataframe as md >>> idx = md.date_range(start='2018-01', freq='M', periods=3) >>> idx.execute() DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31'], dtype='datetime64[ns]', freq='M') >>> idx.month_name().execute() Index(['January', 'February', 'March'], dtype='object')