E
E
Eva052015-11-08 16:43:35
Python
Eva05, 2015-11-08 16:43:35

How to properly create a csv file in Excel to upload and read correctly in a Python DataFrame?

In Excel there is an array a8161f6bebb74e9cbd1247d06d0ba1a0.png
saved as CSV (comma delimited).
Loading into Python using DataFrame.
The information is unloaded, but only in a SINGLE column, instead of the 12 columns that were originally in the Excel file.
I have already downloaded and read csv files many times (not made by me), everything was in order, I saw the columns.
As a result, I have the following unpleasant picture at the output e5dee4503cb04f8891ca75eb73c6c0f6.png
. Help with advice on how to fix everything?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2015-11-08
@sim3x

Use settings before saving
Or script before using in dataframe

D
Dimonchik, 2015-11-08
@dimonchik2013

where does Excel work if you work with CSV?
specify separators correctly, everything will work out
pandas-docs.github.io/pandas-docs-travis/io.html#i...

A
abcd0x00, 2015-11-09
@abcd0x00

Save as CSV (comma delimited).

In Excel, semicolon when exporting to csv. In python, the csv module has an option to set a delimiter other than comma.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question