FutureWarning: The default value of numeric_only in DataFrameGroupBy.mean is deprecated解决方法
一、运行如下代码importpandasaspdimportnumpyasnpdf=pd.DataFrame({'颜色':['蓝色','灰色','蓝色','灰色','黑色'],'商品':['钢笔','钢笔','铅笔','铅笔','文具盒'],'售价':[2.5,2.3,1.5,1.3,5.2],'会员价':[2.2,2,1.3,1.2,5.0]})df-----------------------