Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace nan with mode string pandas

#nan replace mode in string 
df['Brand'].fillna(df['Brand'].mode()[0], inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #nan #mode #string #pandas
ADD COMMENT
Topic
Name
8+6 =