заменить Нэн в пандах
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
Dark Duck
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
df.fillna('', inplace=True)
df['workclass'].replace('?', np.NaN)