-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
read_csv errors when low_memory=True, index_col is not None, and nrows=0 #21141
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
Labels
Milestone
Comments
Sure, this is obviously a bit of a corner case, but PR to fix welcome! |
(removed the milestone as this is not a priority IMO) |
In light of the conversation happening in #21176, I'm more for just disallowing |
cgopalan
pushed a commit
to cgopalan/pandas
that referenced
this issue
Jun 11, 2018
cgopalan
added a commit
to cgopalan/pandas
that referenced
this issue
Jun 11, 2018
4 tasks
gfyoung
pushed a commit
to r00ta/pandas
that referenced
this issue
Jun 16, 2018
* nrows = 0 * low_memory=True * index_col != None Closes pandas-devgh-21141
gfyoung
pushed a commit
to r00ta/pandas
that referenced
this issue
Jun 19, 2018
* nrows = 0 * low_memory=True * index_col != None Closes pandas-devgh-21141
jreback
pushed a commit
that referenced
this issue
Jun 19, 2018
jorisvandenbossche
pushed a commit
that referenced
this issue
Jun 29, 2018
jorisvandenbossche
pushed a commit
that referenced
this issue
Jul 2, 2018
Sup3rGeo
pushed a commit
to Sup3rGeo/pandas
that referenced
this issue
Oct 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample
Problem description
The above code results in
TypeError: 'NoneType' object is not iterable
.read_csv
behaves correctly iflow_memory=False
,index_col=None
ornrows>0
.Traceback:
Expected Output
No error.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.13.0-36-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.0
pytest: 3.3.1
pip: 9.0.1
setuptools: 38.4.0
Cython: 0.27.3
numpy: 1.14.3
scipy: 1.0.0
pyarrow: 0.8.0
xarray: None
IPython: 6.2.1
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: 0.4.0
matplotlib: 2.1.1
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: 4.2.0
bs4: 4.6.0
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: