Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas fillna

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