Each row in my dataframe belongs to a group. For each row after a certain date, I want to find the group average for all rows with dates within a specified number of months