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)
 
PREVIOUS NEXT
Tagged: #pandas #fillna #column
ADD COMMENT
Topic
Name
5+6 =