Füllen Sie fehlende Werte in Spalte Pandas mit dem Mittelwert aus
df.fillna(df.mean(), inplace=True)
Wicked Worm
df.fillna(df.mean(), inplace=True)
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
pandas.DataFrame.fillna(0)
data["Gender"].fillna("No Gender", inplace = True)
# based on another column value
df['column_1'].fillna(df['column_2'], inplace=True)
# selecting your desired columns
df[['a', 'b']] = df[['a', 'b']].fillna(df['c'], inplace=True)