I have a Panda DataFrame which has `1646 X 26` shape. But when I am trying to write the fame in a csv file, the first row is getting skipped. I am getting `1645 X 26` shape in the csv file. So I looked up in the internet and I saw some solutions like using `header = False, header = None, header = 0`. So I was following the solutions. But it got worse. Now I after using those solutions, the shape of the csv file is `1644 X 26`.

I believe `to_csv()` is considering the first row as header. So I implicitly tried changing the header name like this:

I took all the column name of my dataframe by writing this:
`cols = list(_df.columns.values)`

Then in the `to_csv()` I wrote like this:

`_df.to_csv(path_or_buf = 'fantasy_data.csv', sep = ',', index = False, header = cols)`

But it is still the same!!

**Note**
If I run `_df.head()`, it returns the first row!

How to change this so that I can get all the data and `to_csv()` won't skip any row?