title: Converting pandas dataframe to csv
body: <p><a href="https://i.stack.imgur.com/ZlUc1.png" rel="nofollow"><img src="https://i.stack.imgur.com/ZlUc1.png" alt="enter image description here"></a>
  I have the dataframe above and I wish to convert it into a csv file.<br>
  I am currently using <code>df.to_csv('my_file.csv')</code> to convert it but I want to leave 3 blanks columns. For the rows of the file above I have the following procedure.  </p>
  
  <pre><code>dirname = os.path.dirname(os.path.abspath(__file__))
  csvfilename = os.path.join(dirname, 'MainFile.csv')
  with open(csvfilename, 'wb') as output_file:
      writer = csv.writer(output_file, delimiter=',')
      writer.writerow([])
      writer.writerow(["","Amazon","Weekday","Weekend"])
      writer.writerow(["","Ebay",wdvad,wevad])
      writer.writerow(["","Kindle",wdmpv,wempv])
      writer.writerow([])
  </code></pre>
  
  <p>I want to incorporate the data frame right after the blanks space with three blank columns. How can I add the dataframe in continuation to the existing csv file so that I can also add more rows with data after the dataframe. </p>