Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python fillna with mean in a dataframe

df["newColumName"] = df["originalColumnName"].fillna(df["originalColumnName"].mean())
 
PREVIOUS NEXT
Tagged: #python #fillna #dataframe
ADD COMMENT
Topic
Name
6+8 =