1import numpy as np # to use np.nan
2import pandas as pd # to use replace
3
4df = df.replace(' ', np.nan) # to get rid of empty values
5nan_values = df[df.isna().any(axis=1)] # to get all rows with Na
6
7nan_values # view df with NaN rows only
8