time A1 A1 A2 A2 A2 A3 A3
2017-01 a1 a2 b1 b2 c .....
2017-02 a3 a4 b3 b4 c
2017-03 a5 a6 b5 b6 c
....
There is a dataframe as shown above. How to get mean value of the columns which have the same name( as shown below)?
time A1 A2 A3
2017-01 (a1+a2)/2 (b1+b2+c)/3 c
2017-02 .....
2017-03