题解 | #不同等级会员的购买力#
不同等级会员的购买力
https://www.nowcoder.com/practice/510dfacd8e88484c9e929408d8b23ebe
import pandas as pd df= pd.read_csv('Order.csv',sep=',') print(df.groupby('VIP_level')['price'].mean()) print(df.groupby('VIP_level')['shop_name'].nunique())