📜  pandas count nans in column - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:30.200000             🧑  作者: Mango

代码示例6
import pandas as pd
## df1 as an example data frame 
## col1 name of column for which you want to calculate the nan values
sum(pd.isnull(df1['col1']))