I have two columns in my spark dataframe: Name_ls Name_mg Herry null null Cong Duck Duck77 Tinh Tin_Lee Huong null null Ngon Lee null My requirement is to add a new column to dataframe by concatenating the above 2 columns but value of the new column will be one in the two value of the old column is not null How to do that in pyspark ? Expected output: Name_ls Name_mg Name Herry null Herry null Luck Luck Duck Duck77 Duck Tinh Tin_Lee Tinh Huong null Huong null Ngon Ngon Lee null Lee