I want to how we can assign one column value to another column if it has null or 0 value I have a dataframe like this:
id      column1   column2
5263    5400        5400
4354    6567        Null
5656    5456        5456  
5565    6768        3489
4500    3490        Null
The Expected Output is
id      column1   column2
5263    5400        5400
4354    6567        6567        
5656    5456        5456  
5565    6768        3489
4500    3490        3490
that is, if df['column2'] = Null/0 then it has take df['column1'] value.
Can someone explain, how can I achieve my desired output?
 
     
     
     
     
    