BUG: Read CSV on python engine fails when skiprows and chunk size are specified (#55677, #56323) 
-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 #55677 can be quickly caught in the future if it reappears.

-Fixed a flawed test case that now screens for #56323 regressions.

- [✅ ] closes #55677 (Replace xxxx with the GitHub issue number)
- [✅ ] closes #56323 (Replace xxxx with the GitHub issue number)
- [✅] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [✅] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [✅] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [✅] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

pre-commit.ci autofix Does this support the pyarrow engine as well? > Does this support the pyarrow engine as well?

pyarrow doesn't support chunksize, so it shouldn't be affected at all. This PR only modifies the python engine. Hey Will! Left a couple comments I want you to check out and then I'll implement the changes the way you'd prefer from there. Passes test, looking for feedback / to merge if ready. Would love to see pyarrow support for this

On Mon, Dec 4, 2023, 2:13 PM William Ayd ***@***.***> wrote:

> ***@***.**** approved this pull request.
>
> lgtm @mroeschke <https://github.com/mroeschke> any thoughts?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/pandas-dev/pandas/pull/56250#pullrequestreview-1763430889>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAA5E3JABHICEUHPDQOXDH3YHY4HBAVCNFSM6AAAAABAAOIJRKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONRTGQZTAOBYHE>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
 Thanks @Flytre 