pandas get rows with nan code example
Example 1: find nan value in dataframe python
# to mark NaN column as True
df['your column name'].isnull()
Example 2: find nan values in a column pandas
df['your column name'].isnull().values.any()
Example 3: show all rows with nan for a column value pandas
df[df['col'].isnull()]
Example 4: select rows with nan pandas
df[df['Col2'].isnull()]
Example 5: find nan values in a column pandas
df.isnull().sum().sum()