check if a row has null values pandas code example Example: show rows with a null value pandas df1 = df[df.isna().any(axis=1)]