Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas copy column to another columns if null

df['performance_l'] = df['performance_l'].fillna(df['performance_r'])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #copy #column #columns #null
ADD COMMENT
Topic
Name
7+8 =