I have a dataframe with a datetime column, I am trying to get the print out of the sum of all the values with the same datetime and then do an average afterwards of all the values. Here is what I have:
df[col] = pd.to_datetime(df[col]).dt.date
df.groupby([col]).sum()
But I just get a print out of all the dates and not their associated values with how often they appear
Date_Recieved
2017-01-01
2017-01-02
2017-01-03
2017-01-04
2017-01-05
After this I was hoping to save all the values and do a single average