How do I organise this triple column data-set by removing the repeting elements.
Country Year Temperature
US 1990 25
US 1990 27
US 1990 24
US 1991 26
Canada 1990 20
. . .
Into
Country Year AvgTemp
US 1990 25.33
US 1991 26
Canada 1990 20
I can use groupby to do so for just the 'Year' and 'Temp' columns. But what if 3 columns are involved.
(P.S. I am new to pandas )