如何安装seaborn的swarm plot?

2024-05-16 09:57:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经安装了seaborn,但是当我尝试调用catplotswarm plot时,我得到了以下错误:

AttributeError: 'module' object has no attribute 'swarm plot'

你知道为什么会这样吗?在


Tags: noobjectplot错误attributeseabornswarmattributeerror
1条回答
网友
1楼 · 发布于 2024-05-16 09:57:35

您需要seaborn版本0.9.0来构建catplot或swarmplot。您可以使用安装该版本

conda install -c conda-forge seaborn

和13;
和13;

水蟒

或者

和13;

和13;

它为默认的python安装包(在我的例子中是python2.7)

相关问题 更多 >