pandas compare NAN code example Example: find nan value in dataframe python # to mark NaN column as True df['your column name'].isnull()