pandas dataframe select rows that don't have nan code example Example: select rows with nan pandas df[df['Col2'].isnull()]