Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe fill nan with mode

df['Column_Name'].fillna(df['Column_Name'].mode()[0], inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe #fill #nan #mode
ADD COMMENT
Topic
Name
6+9 =