-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
usecols is not respected when the file is empty #12493
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
I agree, since the following is true. IOW an empty with
|
FYI, if you try running that using |
I'll answer my own question: yes. If the C engine can do it, the Python one should be able to do it as well. |
Thanks, much appreciated :) |
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Apr 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xref #9755
If the file is empty, it is logical to compensate with extra columns.
Code Sample, a copy-pastable example if possible
Expected Output
Current output:
Expected output:
output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 7.1.2
setuptools: 18.3.2
Cython: None
numpy: 1.10.1
scipy: 0.16.1
statsmodels: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: 2.8
None
The text was updated successfully, but these errors were encountered: