pandas mean and sum

Solutions on MaxInterview for pandas mean and sum by the best coders in the world

showing results for - "pandas mean and sum"
Lia
12 Jan 2021
1d = {'Missed':'Sum1', 'Credit':'Sum2','Grade':'Average'}
2df=df.groupby('Name').agg({'Missed':'sum', 'Credit':'sum','Grade':'mean'}).rename(columns=d)
similar questions
queries leading to this page
pandas mean and sum