Group index by minute and compute average
问题 So I have a pandas dataframe called 'df' and I want to remove the seconds and just have the index in YYYY-MM-DD HH:MM format. But also the minutes are then grouped and the average for that minute is displayed. So I want to turn this dataFrame value 2015-05-03 00:00:00 61.0 2015-05-03 00:00:10 60.0 2015-05-03 00:00:25 60.0 2015-05-03 00:00:30 61.0 2015-05-03 00:00:45 61.0 2015-05-03 00:01:00 61.0 2015-05-03 00:01:10 60.0 2015-05-03 00:01:25 60.0 2015-05-03 00:01:30 61.0 2015-05-03 00:01:45 61