title: How can I pass a list of columns to select in pyspark dataframe?
body: <p>I have list column names.</p>
  
  <pre class="lang-py prettyprint-override"><code>columns = ['home','house','office','work']
  </code></pre>
  
  <p>and I would like to pass that list values as columns name in "select" dataframe.</p>
  
  <p>I have tried it...</p>
  
  <pre class="lang-py prettyprint-override"><code>df_tables_full = df_tables_full.select('time_event','kind','schema','table',columns)
  </code></pre>
  
  <p>but I have received error below..</p>
  
  <pre class="lang-py prettyprint-override"><code>TypeError: Invalid argument, not a string or column: ['home', 'house', 'office',
  'work'] of type &lt;class 'list'&gt;. For column literals, use 'lit', 'array', 'struct' 
  or 'create_map' function.
  </code></pre>
  
  <p>Can you have any ideia?
  Thank you guys!</p>