Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas fillna

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