Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas fillna with another column

# based on another column value
df['column_1'].fillna(df['column_2'], inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #fillna #column
ADD COMMENT
Topic
Name
4+1 =