select rows from pandas dataframe based on column value if value not null code example Example: show rows with a null value pandas df1 = df[df.isna().any(axis=1)]