I have sample data as below.
I would like populate another column exp based on country field value.
Something like below
df.withColumn("exp",col(s"exp_$country"))
So that respective country number can be placed there.
But above code errors out saying:
cannot resolve country
Output I need is
Any help appreciated.

