Closed mdavis-xyz closed 1 week ago
The error does not occur if chunksize
is specified. That's the None
the error refers to.
So I'm guessing that the default value for chunksize
is not applied if nrows
is set.
The solution (workaround for user for now): specify chunksize
.
The solution (for pandas developers):
chunksize
value in this case; orchunksize
is specified. Throw a more clear ValueError
(or something else) to the user saying that chunksize
must be specified in this case.Thanks for the report! I will submit a PR soon which will use your first solution (apply default chunksize
)
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Behavior: