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
Happened to me when I was using df instead of pd as:
df.pivot_table(df[["....
instead of
pd.pivot_table(df[["...