I have a dataframe for a whole year as follows:
date        data1
2022-01-01  30
2022-01-02  10
2022-01-03  15
2022-01-04  5
...
I now want to add a column to the data frame with the corresponding day of the week (Monday, Tuesday, Wednesday, etc)
I have a dataframe for a whole year as follows:
date        data1
2022-01-01  30
2022-01-02  10
2022-01-03  15
2022-01-04  5
...
I now want to add a column to the data frame with the corresponding day of the week (Monday, Tuesday, Wednesday, etc)