Re: Cannot compare columns directly in IF...ELSE statement
Not sure if I understood the question correctly, but did you try using `case when` ? Thanks, Bala On Fri, Mar 25, 2022, 12:44 PM Sid wrote: > Hi Team, > > I need help with the below problem: > > > https://stackoverflow.com/questions/71613292/how-to-use-columns-in-if-else-condition-in-pyspark >
Cannot compare columns directly in IF...ELSE statement
Hi Team, I need help with the below problem: https://stackoverflow.com/questions/71613292/how-to-use-columns-in-if-else-condition-in-pyspark Thanks, Sid