【问题标题】:AttributeError: module 'seaborn' has no attribute 'load_dataset'AttributeError:模块“seaborn”没有属性“load_dataset”
【发布时间】:2021-07-04 21:22:38
【问题描述】:

我只是想从这里运行 Seaborn 示例:https://seaborn.pydata.org/installing.html

将 seaborn 导入为 sns df = sns.load_dataset("企鹅") sns.pairplot(df, hue="species")

但我收到以下错误:AttributeError: module 'seaborn' has no attribute 'load_dataset'

我查过了,似乎没有名为 seaborn.py 的文件

【问题讨论】:

  • 也许你有一个名为“seaborn.py”的本地文件?

标签: python jupyter-notebook seaborn


【解决方案1】:

除非您的环境中有一个同名“seaborn”的包,否则我无法复制它。我会尝试在新环境中安装 seaborn,看看你是否遇到错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-12-17
    • 2021-02-05
    • 1970-01-01
    • 2018-04-14
    • 2019-02-18
    • 1970-01-01
    相关资源
    最近更新 更多