ValueError: Grouper for not 1-dimensional

前端 未结 5 1840
梦如初夏
梦如初夏 2020-12-30 19:40

I\'m have the following code which creates a table and a barplot via seaborn.

#Building a dataframe grouped by the # of Engagement Types
sales_type = sales.g         


        
5条回答
  •  醉梦人生
    2020-12-30 19:44

    Happened to me when I was using df instead of pd as:

    df.pivot_table(df[["....
    

    instead of

    pd.pivot_table(df[["...
    

提交回复
热议问题