how to locate the rows with nan values in pandas code example Example: select rows with nan pandas df[df['Col2'].isnull()]