m1 macbook pro 上的 Pandas 无法识别 NaN 值,即使数据中显然存在 NaN 值。 The first picture shows the first 5 rows of the data, and you can apparently see that there are NaN values
当我在 Windows 和 Linux 上运行相同的代码时(还没有在没有 m1 芯片的 macbook 上尝试过),它们可以正确识别 NaN 值。 我已经在两个不同的 m1 芯片 macbooks 上尝试过,但结果相同。 有人遇到同样的问题吗??或者知道什么可能导致这种情况? 非常感谢。
答案 0 :(得分:0)
试试:
data.info()
查看它们在数据框中的变量类型。我的猜测是该列中的任何内容都没有被识别为数字。