Skip to content
Advertisement

Seaborn bar plot with regression line query

I am trying to produce a bar plot with a line of regression. I am trying to follow a previous suggestion for the same problem but get an error message that I am unable to overcome. My script is as follows:

JavaScript

The error message I get is:

JavaScript

but I am not sure what this means. Can anyone help?

Advertisement

Answer

Please ensure you supply int or float in the df

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement