how to find the index of null values in a dataframe 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()