Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace empty numbers in dataframe

avg = df['Balance'].mean()
df['Balance'].fillna(value=avg, inplace=True)
Source by radiant-brushlands-42789.herokuapp.com #
 
PREVIOUS NEXT
Tagged: #replace #empty #numbers #dataframe
ADD COMMENT
Topic
Name
2+2 =