dataframe fill empty values code example
Example 1: pandas replace empty string with nan
df = df.replace(r'^\s*$', np.NaN, regex=True)
Example 2: pandas nan values in column
df['your column name'].isnull()
df = df.replace(r'^\s*$', np.NaN, regex=True)
df['your column name'].isnull()