datawhalechina / joyful-pandas

pandas中文教程

Home Page:http://inter.joyfulpandas.datawhale.club/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在pandas的agg函数中使用:NameAgg

Leo-Ji2020 opened this issue · comments

新版本pandas在agg函数中增加了新的使用方式,即:agg( varname=pd.NameAgg(column='', aggfunc='') )
https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.DataFrameGroupBy.aggregate.html

API中未包含pd.NamedAgg,暂不考虑