Skip to content

Commit

Permalink
Fix -GH 55677:
Browse files Browse the repository at this point in the history
Added support for the python parser to handle using skiprows and chunk_size options at the same time to ensure API contract is met.

Added a regression test to ensure this bug can be quickly caught in the future if it reappears.

Signed-off-by: Flytre <[email protected]>
  • Loading branch information
Flytre committed Nov 29, 2023
1 parent d654823 commit f11d7a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v2.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ MultiIndex

I/O
^^^
- Bug in :func:`read_csv` where ``engine="python"`` was causing a ``TypeError`` when a callable skiprows and a chunk size was specified. (:issue:`55677`)
- Bug in :func:`read_csv` where ``on_bad_lines="warn"`` would write to ``stderr`` instead of raise a Python warning. This now yields a :class:`.errors.ParserWarning` (:issue:`54296`)
- Bug in :func:`read_csv` with ``engine="pyarrow"`` where ``usecols`` wasn't working with a csv with no headers (:issue:`54459`)
- Bug in :func:`read_excel`, with ``engine="xlrd"`` (``xls`` files) erroring when file contains NaNs/Infs (:issue:`54564`)
Expand Down

0 comments on commit f11d7a8

Please sign in to comment.