I am currently working on the pandas DataFrame with DateTime object. Is there a way to extract the month-weekofthemonth from pandas datetime object?
data = pd.DataFrame(pd.date_range(' 1/ 1/ 2020', periods = 7, freq ='D'))
0 2000-01-01
1 2000-01-02
2 2000-01-03
3 2000-01-04
4 2000-01-05
5 2000-01-06
6 2000-01-07
Expected:
0 2000-01-01 01-01
1 2000-01-02 01-01
2 2000-01-03 01-01
3 2000-01-04 01-01
4 2000-01-05 01-01
5 2000-01-06 01-01
6 2000-01-07 01-01
7 2000-01-08 01-02
8 2000-01-09 01-02
9 2000-01-10 01-02