I am working with pyspark 2.0.
My code is :
for col in to_exclude:
df = df.drop(col)
I cannot do directly df = df.drop(*to_exclude)
because in 2.0, drop method accept only 1 column at a time.
Is there a way to change my code and remove the for loop ?