小编Zho*_*hoe的帖子

在Seaborn中绘图时Python代码中的错误

我正在尝试使用绘制python中的分布图seaborn。但是我收到以下无法解决的错误。

码:

sns.distplot(df['nn'])

错误:

cannot convert float NaN to integer

是否有任何有效的方法可以通过绘制直方图和分布图来解决此问题?

python matplotlib pandas plotly seaborn

1
推荐指数
1
解决办法
2900
查看次数

标签 统计

matplotlib ×1

pandas ×1

plotly ×1

python ×1

seaborn ×1