check the row that has a nan value pandas code example Example: dataframe find nan rows df[df.isnull().any(axis=1)]