-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Converters handling inconsistent with usecols #18566
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
@fortooon : Thanks for reporting this! (EDIT: the explanation was wrong. See below for correct explanation.) Closing this issue for now can always re-open if necessary. |
@gfyoung : Thanks for response. But how can I avoid this error and use regexp separator that determines tab sign or comma? I thought that using 'sep' parameter as regexp is legal according to doc :
|
@fortooon : Good point. I misspoke yesterday about that. Looking at this with a clearer mind, your regex is indeed correct. However, your converters are not correct. The indices you choose must be relative to the When you specify
The converters are then applied to this filtered table. You can see here that there no longer is a column 2. Thus, when The reason why I hope this clarifies what you're seeing. Let me know if you have any other questions. |
@gfyoung Thanks for detailed answer.
I can see, that my_converter didn't call:
only one converter was called. Please, comment this point. Also situation, when some indices of converters work good with python engine, but not work with default - look like a bug. |
use attached file and run script
csv2.txt
Problem description
Terminal INSTALLED VERSIONS
Terminal ------------------
Terminal commit: None
Terminal python: 2.7.7.final.0
Terminal python-bits: 64
Terminal OS: Linux
Terminal OS-release: 4.4.0-97-generic
Terminal machine: x86_64
Terminal processor: x86_64
Terminal byteorder: little
Terminal LC_ALL: None
Terminal LANG: en_US.UTF-8
Terminal LOCALE: en_US.UTF-8
Terminal
Terminal pandas: 0.20.1
Terminal pytest: None
Terminal pip: 9.0.1
Terminal setuptools: 1.1.6
Terminal Cython: None
Terminal numpy: 1.11.2
Terminal scipy: 0.18.1
Terminal xarray: None
Terminal IPython: 0.13.2
Terminal sphinx: None
Terminal patsy: None
Terminal dateutil: 2.3
Terminal pytz: 2014.10
Terminal blosc: None
Terminal bottleneck: None
Terminal tables: None
Terminal numexpr: None
Terminal feather: None
Terminal matplotlib: 1.5.0
Terminal openpyxl: 2.3.0
Terminal xlrd: 0.9.4
Terminal xlwt: 1.0.0
Terminal xlsxwriter: None
Terminal lxml: None
Terminal bs4: None
Terminal html5lib: None
Terminal sqlalchemy: None
Terminal pymysql: None
Terminal psycopg2: None
Terminal jinja2: 2.8
Terminal s3fs: None
Terminal pandas_gbq: None
Terminal pandas_datareader: None
The text was updated successfully, but these errors were encountered: