Created
September 1, 2015 02:17
-
-
Save pawl/2aab05de16da3ae153c8 to your computer and use it in GitHub Desktop.
pandas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def csv_encode(value, encoding='UTF-8'): | |
| if py3compat.PY3 or not isinstance(value, unicode): | |
| return value | |
| return value.encode(encoding, 'replace') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment