I have written code in Python using Pandas that adds "VEN_" to the beginning of the column names:
Tablon.columns = "VEN_" + Tablon.columns And it works fine, but now I'm working with PySpark and it doesn't work. I've tried:
Vaa_total.columns = ['Vaa_' + col for col in Vaa_total.columns] or
for elemento in Vaa_total.columns: elemento = "Vaa_" + elemento And other things like that but it doesn't work.
I don't want to replace the columns name, I just want to mantain it but adding a string to the beginning.