select rows which have nan values python code example
Example 1: dataframe find nan rows
df[df.isnull().any(axis=1)]
Example 2: find nan values in a column pandas
df.isnull().values.any()
Example 3: select rows which have nan values python
df[df['column name'].isna()]
Example 4: select rows which have nan values python
df[df['column name'].isnull()]