replace empty numbers in dataframe code example
Example: replace empty numbers in dataframe
avg = df['Balance'].mean()
df['Balance'].fillna(value=avg, inplace=True)
avg = df['Balance'].mean()
df['Balance'].fillna(value=avg, inplace=True)