-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Codec utf-16
aliases do not work in read_csv with c engine
#13549
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
Comments
Without error handling to run through all test cases, the traceback is:
|
In case it is relevant: 7.2.3. Standard Encodings[…]Notice that spelling alternatives that only differ in case or use a hyphen instead of an underscore are also valid aliases; therefore, e.g. 'utf-8' is a valid alias for the 'utf_8' codec. CPython implementation detail: Some common encodings can bypass the codecs lookup machinery […]: […] utf-16 […] |
utf-16
synonyms do not work in read_csv with c engineutf-16
aliases do not work in read_csv with c engine
This also holds if the writing encoding is taken to be
|
yeah this has a string definition of want to take a crack at it? |
see issue pandas-dev#13549 read_csv with engine=c throws error when encoding=UTF_16 or when encoding has _ or caps
read_csv with engine=c throws error when encoding=UTF_16 or when encoding has _ or uppercase improved testing loops and added multibyte testing see issue pandas-dev#13549
removed `pd` from `pd.DataFrame` see issue pandas-dev#13549
fixed pep8 formatting issue see issue pandas-dev#13549
see issue pandas-dev#13549 read_csv with engine=c throws error when encoding=UTF_16 or when encoding has _ or caps
read_csv with engine=c throws error when encoding=UTF_16 or when encoding has _ or uppercase improved testing loops and added multibyte testing see issue pandas-dev#13549
removed `pd` from `pd.DataFrame` see issue pandas-dev#13549
fixed pep8 formatting issue see issue pandas-dev#13549
change encoding to lowercase sub - for _ see pandas-dev#13549
change encoding to lowercase sub - for _ see pandas-dev#13549
test utf-16 and utf-8 caps/ -_ variants see pandas-dev#13549
Code Sample, a copy-pastable example if possible
Expected Output
Actual Output
output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.6.2-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.1
setuptools: 23.0.0
Cython: None
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: