pandas remove decimal but need nulls code example
Example 1: if none in column remove row
import pandas as pd
df = df[pd.notnull(df['Gender'])]
Example 2: pandas replace empty string with nan
df = df.replace(r'^\s*$', np.NaN, regex=True)
import pandas as pd
df = df[pd.notnull(df['Gender'])]
df = df.replace(r'^\s*$', np.NaN, regex=True)