Ersetzen Sie Nan in Pandas
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)