groupby
(通过...分组)
Hello, i try to find the mean of a data of groupby a dataframe.
(您好,我试图找到数据框的分组数据的平均值。)
(但是,它表明我的工作语法无效,请有人帮助我。)
我认为正确的语法是:
neighbourhood_price = df_listing.dropna().groupby(by=['neighbourhood'])['price']
548k questions
547k answers
4 comments
86.3k users