I have 2 columns, how I can fill one of them based on the other one?
if col2
was non_null make the col1
==col2
and keep col1
everywhere:
col1 col2
null 'us'
'us' null
'us' null
null 'us'
null 'us'
null null
output
col1 col2
'us' 'us'
'us' null
'us' null
'us' 'us'
'us' 'us'
null null