Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

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

I'm trying to plot using sns.histplot on the Titanic Dataset in Kaggle's Jupyter Notebook.

This is my code:

sns.histplot(train, x = "Age", hue="Sex")

But it's throwing me this error:

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

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

I have made sure to import seaborn (previous plots using sns.barplot worked fine).

I'm running on Mac OS X 10.15.6, and Seaborn version 0.11.0.

Could somebody point out what went wrong? Thanks in advance.

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

I updated the seaborn module using:

pip install -U seaborn

and it resolved the issue for me.

over 4 years ago · Santiago Trujillo Denunciar

0

Step 1: Upgrade your seaborn

pip install seaborn --upgrade

Step 2: Restart Jupyter.

over 4 years ago · Santiago Trujillo Denunciar

0

Just in order to extend the answer from Ahsan Goheer. Try updating seaborn with:

pip install -U seaborn

Then restart the Notebook's kernel. Should work by now

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda