Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas fillna with another column

# selecting your desired columns
df[['a', 'b']] = df[['a', 'b']].fillna(df['c'], inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #fillna #column
ADD COMMENT
Topic
Name
2+6 =