-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot save DataFrame with unicode to CSV #705
Comments
I presume you're using python version < 3? The csv module does not handle unicode unfortunately. I'll see if there is a workaround, but as you can tell by the recurring issues, pandas isn't exactly unicode-friendly on <= python 2.7, but neither is python 2.7 ... |
I had to rewrite this b/c it slowed down CSV reading/writing. If you want to write a UTF-8 encoded csv in python version < 3, you need to pass df.to_csv(..., encoding='utf-8'). |
Yes, I'm on 2.7. Thanks @adamklein ! |
* commit 'v0.7.0rc1-94-ge3df4e2': DOC: added info on encoding parameter for csv i/o TST: renamed io b/c module conflict, made suite check for config added vbench for write csv BUG: made encoding optional on csv read/write, addresses pandas-dev#717 BUG: float64 hash table for handling NAs in Series.unique, close pandas-dev#714 TST: add bench_unique.py TST: added better testing for pandas-dev#709 BUG: closes pandas-dev#709, bug in ix + multiindex use case DOC: release notes BUG: don't assume that each object contains every unique block type in concat, GH pandas-dev#708 BUG: inconsistency in .ix with integer label and float index Fix test that assumed py2. Don't use unnecessary UnicodeReader on Python 3. BUG: remove poor man's breakpoint BUG: closes pandas-dev#705, csv is encoded utf-8 and then decoded on the read side updated support contact info DOC: note EWMA adjustment, closes pandas-dev#703 ENH: close pandas-dev#694, pandas-dev#693, pandas-dev#692 BUG: Bar plot fails if axis parameter supplied, closes pandas-dev#702
@adamklein 2018 and still the same issue. your trick helped. thanks! |
Fixes build breakage due to pandas 0.24.0 upgrade
I think this should be separate from #680. The CSV issue is also mentioned in this comment on bug #300.
The text was updated successfully, but these errors were encountered: