Isi nilai yang hilang di panda kolom dengan rata -rata
df.fillna(df.mean(), inplace=True)
Wicked Worm
df.fillna(df.mean(), inplace=True)
df.fillna(df.mean())
For one column using pandas:
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
df['Item_Weight'] = df['Item_Weight'].fillna((df['Item_Weight'].mean()))
df['Column_Name'].fillna(df['Column_Name'].mode()[0], inplace=True)