Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to replace nan values in pandas with mean of column

#fill nan values with mean
df = df.fillna(df.mean())
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #replace #nan #values #pandas #column
ADD COMMENT
Topic
Name
9+1 =