sample data with missing rows python code example Example: pandas get rows with missing data null_data = df[df.isnull().any(axis=1)]