how to return rows with NaN pandas code example
Example 1: dataframe find nan rows
df[df.isnull().any(axis=1)]
Example 2: select rows which have nan values python
df[df['column name'].isna()]
df[df.isnull().any(axis=1)]
df[df['column name'].isna()]