I have list column names.
columns = ['home','house','office','work']
and I would like to pass that list values as columns name in "select" dataframe.
I have tried it...
df_tables_full = df_tables_full.select('time_event','kind','schema','table',columns)
but I have received error below..
TypeError: Invalid argument, not a string or column: ['home', 'house', 'office',
'work'] of type <class 'list'>. For column literals, use 'lit', 'array', 'struct'
or 'create_map' function.
Can you have any ideia? Thank you guys!