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

限于喜欢 提交于 2021-01-02 12:52:05

问题


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.

来源:https://stackoverflow.com/questions/64815227/attributeerror-module-seaborn-has-no-attribute-histplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!