使用Seaborn:lmplot's

2024-05-29 10:54:05 发布

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

我正在尝试使用这些变量创建lmplot

代码应该基于manuf列创建子图

这是我的当前代码和错误:

sns.lmplot(x="Carbo", y="Sugars", col='Manuf',data=cereals_data3)

TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'

如果您有任何关于如何解决此问题的建议,我们将不胜感激,谢谢

这里是前10行,只是为了显示我正在处理的数据

enter image description here

针对一项评论: enter image description hereenter image description here


Tags: to代码data错误coldtypesnstypeerror

热门问题