-
Notifications
You must be signed in to change notification settings - Fork 21
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
Using chunksize gives TypeError: 'TextFileReader' object does not support item assignment
#106
Comments
We're now using |
Note to self: it only happens with the combination of |
… Pandas option and archives with default values (issue #106).
After careful inspection I can't see any sane way to deal with this specific combination ( I therefore decided to document the incompatibility + add a human readable exception for that situation. This is also tested. |
Would it be worth adding a note to https://python-dwca-reader.readthedocs.io/en/latest/pandas_tutorial.html too? It was this documentation that led me to believe that this combination might be possible. |
We've been using
python-dwca-reader
with no problems loading about 13k occurrences. We now need to scale it up to load about 3.25m occurrences.Changing the code from:
to:
causes the error:
Looking at
gbif-alert
, I see that you're usingenumerate(dwca)
rather than reading it in chunks, so I'll give that a try.The text was updated successfully, but these errors were encountered: