title: transposing rows into columns in pyspark
body: <p>I have dataframe track_log where columns are </p>
  
  <pre><code>item  track_info  Date    
  ----------------------
  1     ordered     01/01/19
  1     Shipped     02/01/19
  1     delivered   03/01/19
  </code></pre>
  
  <p>I want to get data as</p>
  
  <pre><code> item       ordered    Shipped    Delivered
  --------------------------------------------
    1        01/01/19   02/01/19   03/01/19
  </code></pre>
  
  <p>need to resolve this using pyspark</p>