df output rows where column is nan code example Example: dataframe find nan rows df[df.isnull().any(axis=1)]