-
报错代码
np.isinf(Table) -
nmupy错误提示:
TypeError: ufunc ‘isinf’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’
-
原因
Table 数据中存在非数值型的数据,比如str -
解决方法
删除Table数据中的非数值型数据
TypeError: ufunc ‘isinf‘ not supported for the input types, and the inputs could not be safely...
最新推荐文章于 2024-09-01 21:31:39 发布
本文探讨了遇到的NumPy错误,当Table数据包含非数值类型(如字符串)时,如何通过删除这些数据来修复isinf函数的使用。关键步骤是识别问题并实施数据清理。
12万+

被折叠的 条评论
为什么被折叠?



