title: how to write the spark sql DF row into two lines to s3
body: <p>DataFrame :</p>
  
  <pre><code>         Df row1 : Ravi  Computers   20
  
           Df row2 : Jon    Electronics 21
  
           Df row3 : Sam    arts        20
  </code></pre>
  
  <p>How can I write to write into s3 file as</p>
  
  <pre><code>           Line1: Index:Ravi
             Line2: Ravi  Computers   20
             Line3: Index:Jon
             Line4: Jon     Electronics 21
             Line5: Index:Sam
             Line6: Sam     arts        20
  </code></pre>