using pandas read csv cause gibberish
See original GitHub issueDescription of your problem
What steps will reproduce the problem?
- update spyder to 3.0.0.b7
- use read_csv in pandas and specify encoding in read_csv to gbk
- prepare a csv which filling with chinese character and encoded using gbk
What is the expected output? What do you see instead? in 3.0.0b6, we can see the right character, but in 3.0.0b7 we just get some gibberish
Please provide any additional information below
Versions and main components
- Spyder Version:3.0.0b7
- Python Version: Python 2.7.12 |Anaconda 4.0.0 (64-bit)
- Operating system: win7
Dependencies
pandas 0.18.1
Please go to the menu entry Help > Optional Dependencies
(or
Help > Dependencies
), press the button Copy to clipboard
and paste the contents below:
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Pandas cannot load data, csv encoding mystery - Stack Overflow
One thing you could do, is to read the CSV file as a binary, decode the binary string and replace the erroneous characters....
Read more >pandas.read_csv — pandas 1.5.2 documentation
Read a comma-separated values (csv) file into DataFrame. Also supports optionally iterating or breaking of the file into chunks. Additional help can be...
Read more >Read CSV Files In Pandas - YouTube
In this session, we will learn how to read CSV File in Pandas. CSV files are common file format that a data analyst...
Read more >Removing Ï.., I and two dots or umlaut, when using read.csv in R
... some gibberish prepended to the first column name of a data frame when using read.csv. However, there's a good reason why this...
Read more >Why does my exported CSV data get converted to weird ...
To be clear, the reason these problems occur is not due to the way Shift4Shop ... Fortunately, CSV files have the advantage of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this has the same cause as issue #3428: the missing
__init__.py
file. After copyingutils/site
from a Git clone to the Anaconda directory, beta7 has the same behaviour as beta6. So my guess is that this issue will disappear with the next release of Spyder.Closing, as it seems this was fixed in Spyder 3.0 😉