Pandas空值判断

1.浮点型float

np.isnan()

pd.isna()

pd.isnull()/pd.notnull

2.字符串str

pd.isna()

pd.isnull()/pd.notnull()

3.时间datetime类型

np.isnat()

pd.isnull/pd.notnull万能


版权声明:本文为Lemon_ZL原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。