Calculating mean for every second value in a dataframe
问题 I would like to aggregate each two cell values by mean and continue with the same process down the column of the dataframe. To be more precise see the following dataframe extract: X Y Z 1 FRI 200101010000 -6.72 2 FRI 200101010030 -6.30 3 FRI 200101010100 -6.26 4 FRI 200101010130 -5.82 5 FRI 200101010200 -5.64 6 FRI 200101010230 -5.29 7 FRI 200101010300 -5.82 8 FRI 200101010330 -5.83 9 FRI 200101010400 -5.83 10 FRI 200101010430 -6.04 11 FRI 200101010500 -5.80 12 FRI 200101010530 -6.09 I would