So I have a dataset that looks kind of like this:
Date. A B
March 2, 2020 2 10
March 14, 2020 4 20
Feb 12, 2020 3 8
Feb 21, 2020 1 4
Jan 3, 2020 6 10
Jan 17, 2020 3 5
I'd like group the rows by year-month essentially stripping the day from the date column while simaltaneously summing the combined rows within that month. Should look something like this:
Date A B
2020-3 6 30
2020-2 4 12
2020-1 9 15
The very end goal is to create a Simple Moving Average Calculation with a 3 month window for each month that averages the values of the summed up columns
Thank you so much in advanced!