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