pandas position of null values code example
Example 1: find index of null values pandas
rows_with_nan = [index for index, row in df.iterrows() if row.isnull().any()]
Example 2: get the row index which is null
df[df['A'].isnull()].index.tolist()
rows_with_nan = [index for index, row in df.iterrows() if row.isnull().any()]
df[df['A'].isnull()].index.tolist()