Skip to content
Home » AttributeError: module ‘seaborn’ has no attribute ‘histplot’

AttributeError: module ‘seaborn’ has no attribute ‘histplot’

To solve AttributeError: module ‘seaborn’ has no attribute ‘histplot’ error follow below methods.

ERROR LOG

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input> in <module>
--> 1 sns.histplot(train, x = "student", hue="marks")

AttributeError: module 'seaborn' has no attribute 'histplot'

How to solve AttributeError: module ‘seaborn’ has no attribute ‘histplot’ ?

You will generally get this error if you haven’t installed or upgraded seaborn. Try running below command and then restart your kernel.

pip install -U seaborn
pip install seaborn --upgrade

Hope the above solution works.

Also read : Warning: pip is being invoked by an old script wrapper