由于某种原因,我的大数据帧无法进行类型转换,我收到如下错误消息:could not convert string to float: 'False'.现在,因为我有100列,所以我想要检测astype转换在哪一列失败,所以看一下traceback: result = result.astype(pdSchema)
File "C:\Users\spidey\AppData\Roaming\Python\Python39\site-packages\
我有一些csv文件,有时我在pandas.read_csv方法中错误地配置了dtype参数,因此Pandas失败了,并显示以下错误: TypeError: Cannot cast array datafrom dtype('float64') to dtype('int64') according to the rule 'safe' 而没有说明此转换在哪一列上失败。如何检索失败的列名或索引(