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