Since one column of my pandas dataframe has nan value, so when I want to get the max value of that column, it just return error.
nan
>>> d
Dataframe aggregate function.agg() will automatically ignore NaN value. df.agg({'income':'max'})
.agg()
df.agg({'income':'max'})
Besides, it can also be use together with .groupby
.groupby
df.groupby('column').agg({'income':['max','mean']})