📅  最后修改于: 2022-03-11 14:46:30.200000             🧑  作者: Mango
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']))