I have the following datasets of three variables:
- df['Score'] Float dummy (1 or 0)
- df['Province'] an object column where each row is a region
- df['Product type'] an object indicating the industry.
I would like to create a jointplot where on the x axis I have the different industries, on the y axis the different provinces and as colours of my jointplot I have the relative frequency of the score. Something like this. https://seaborn.pydata.org/examples/hexbin_marginals.html
For the time being, I could only do the following
mean = df.groupby(['Province', 'Product type'])['score'].mean()
But i am not sure how to plot it.
Thanks!