Hello All,

How can we use a derived column1 for deriving another column in the same
dataframe operation statement?

something like:

df = df.withColumn('derived1', lit('something'))
.withColumn('derived2', col('derived1') == 'something')

-- 
Regards,

Rishi Shah

Reply via email to