numpy float nan check pandas code example Example: check is string is nan python >>> pd.isnull(None) True