title: How to print only a certain column of DataFrame in PySpark?
body: <p>Can one use the actions <code>collect</code> or <code>take</code> to print only a given column of DataFrame?</p>
  
  <p>This</p>
  
  <pre><code>df.col.collect()
  </code></pre>
  
  <p>gives error</p>
  
  <blockquote>
    <p>TypeError: 'Column' object is not callable</p>
  </blockquote>
  
  <p>and this:</p>
  
  <pre><code>df[df.col].take(2)
  </code></pre>
  
  <p>gives</p>
  
  <blockquote>
    <p>pyspark.sql.utils.AnalysisException: u"filter expression 'col' of type string is not a boolean.;"</p>
  </blockquote>