df8 = pd.pivot_table(df8,index= "会员卡ID",values = ["会员卡ID","天数","销售金额"],
aggfunc = {"会员卡ID":"count","天数":"min","销售金额":"sum"})
df8 = df2[["天数","会员卡ID","销售金额"]]
df8.columns = ["R","F","M"]
df8.reset_index()
display(df8.shape)
display(df8.head(10))
ValueError: Grouper for '会员卡ID' not 1-dimensional;
求解决思路