title: Pandas to_csv skipping the first row of dataframe
body: <p>I have a Panda DataFrame which has <code>1646 X 26</code> shape. But when I am trying to write the fame in a csv file, the first row is getting skipped. I am getting <code>1645 X 26</code> shape in the csv file. So I looked up in the internet and I saw some solutions like using <code>header = False, header = None, header = 0</code>. So I was following the solutions. But it got worse. Now I after using those solutions, the shape of the csv file is <code>1644 X 26</code>.</p>
  
  <p>I believe <code>to_csv()</code> is considering the first row as header. So I implicitly tried changing the header name like this:</p>
  
  <p>I took all the column name of my dataframe by writing this:
  <code>cols = list(_df.columns.values)</code></p>
  
  <p>Then in the <code>to_csv()</code> I wrote like this:</p>
  
  <p><code>_df.to_csv(path_or_buf = 'fantasy_data.csv', sep = ',', index = False, header = cols)</code></p>
  
  <p>But it is still the same!!</p>
  
  <p><strong>Note</strong>
  If  I run <code>_df.head()</code>, it returns the first row!</p>
  
  <p>How to change this so that I can get all the data and <code>to_csv()</code> won't skip any row?</p>