I have a code that I want to calculate the a sum or a average between two dates.
Example data that is in a Pandas DataFrame:
data = {\'Dates\':[\'2022-