print columns with missing values pandas code example Example: how to find rows with missing data in pandas null_data = df[df.isnull().any(axis=1)]