I have a dataframe where the columns are by day in this format:
a b c 01/01/2020 01/02/2020 01/03/2020 ...
1000 2000 3000 2 5 7
.
.
.
These are just arbitrary values. What I want is to sum the date columns and group them by week, like week_1, week_2,...
so on and so forth. So for the example above it would look like:
a b c week_1...
1000 2000 3000 14
.
.
.
Is there a clean way to do it for columns? I know I can sum all the columns by selecting the date columns and summing them on the axis, but I'm not sure how to do it per week. Any help is appreciated!