错误不可哈希类型:运行elections_complete_df.query(“FIPS.isnull()”)代码时发生“系列”该怎么办?

问题描述 投票:0回答:1

我正在 Arcgis 模块上运行 python 命令进行训练,在编辑数据文件时,我已将文件 County_fips 重命名为 FIPS。代码运行良好。 但是运行代码时elections_complete_df.query("FIPS.isnull()") 它给出了不可散列的类型:“系列”。怎么修改enter image description here

我期望它返回有多少个空值,以便修改数据属性

python arcgis
1个回答
0
投票

试试这个代码;这对我来说很有效

elections_complete_df.query(“FIPS!= FIPS”)

© www.soinside.com 2019 - 2024. All rights reserved.