change false to nan pandas code example
Example 1: replacing values in pandas dataframe
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
Example 2: how to replace zero with null in python
df2[["Weight","Height","BootSize","SuitSize"]].astype(str).replace('0',np.nan)