I am trying to plot two distributions on one plot. I like the pairplot format as it is NOT a histogram and it also shows the overlap of distributions nicely. However, when applying a pairplot for only 1 continuous and 1 categorical variable, it shows a strange formatting error I think. How do I either resolve this error OR use another plot type which shows the exact same chart? Also, how do I add a legend for the color coding?
Code:
df=>df['Sales','Customer_type']
sb.pairplot(df, hue="Customer_type")
Following Error with the OUTPUT: RuntimeError: Selected KDE bandwidth is 0. Cannot estimate density.