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 <flinkbyhe...@gmail.com> 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 > > Thanks, > Sid >