Pandas has both isna() and isnull(). I usually use isnull() to detect missing values and have never met the case so that I had to use other than that. So, when to use isna()?
isna()
isnull()
isnull is an alias for isna. Literally in the code source of pandas:
isnull
isna
isnull = isna
Indeed:
>>> pd.isnull <function isna at 0x7fb4c5cefc80>
So I would recommend using isna.
1.4m articles
1.4m replys
5 comments
57.0k users