ENH: return .dt.weekday/isoweekday/month_name/day_name as ordered categoricals #12993
Open
Description
#12803 added .dt.weekday_name
. I think its appropriate to return this (and .weekday
) as ordered categoricals
In [1]: s = Series(pd.date_range('20130101',periods=10))
In [2]: s.dt.weekday
Out[2]:
0 1
1 2
2 3
3 4
4 5
5 6
6 0
7 1
8 2
9 3
dtype: int64
In [3]: s.dt.weekday_name
Out[3]:
0 Tuesday
1 Wednesday
2 Thursday
3 Friday
4 Saturday
5 Sunday
6 Monday
7 Tuesday
8 Wednesday
9 Thursday
dtype: object