Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fill nan values with mean

df['Item_Weight'] = df['Item_Weight'].fillna((df['Item_Weight'].mean()))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fill #nan #values
ADD COMMENT
Topic
Name
5+8 =