dataframe某一列空值统计
时间: 2023-12-03 20:47:55 浏览: 142
要统计DataFrame某一列的空值数量,你可以使用`isnull()`方法将DataFrame转换为一个布尔值的DataFrame,然后使用`sum()`方法得到每一列的空值数量。下面是一个示例代码来统计某一列的空值数量:<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python金融分析小知识(5)——如何查看DataFrame中的空值](https://blog.csdn.net/qq_41281698/article/details/124570002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [pandas dataframe统计填充空值大全](https://blog.csdn.net/bitcarmanlee/article/details/123655499)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文