print null rows pandas code example
Example 1: show rows with a null value pandas
df1 = df[df.isna().any(axis=1)]
Example 2: select rows with nan pandas
df[df['Col2'].isnull()]
df1 = df[df.isna().any(axis=1)]
df[df['Col2'].isnull()]