pandas check if row contains null code example Example: select rows with nan pandas df[df['Col2'].isnull()]