Skip to content

Add csvslice to select a range of CSV rows - #1405

Open
umrndem wants to merge 1 commit into
wireservice:masterfrom
umrndem:codex/csvslice-row-range
Open

umrndem wants to merge 1 commit into
wireservice:masterfrom
umrndem:codex/csvslice-row-range

Conversation

@umrndem

@umrndem umrndem commented Nov 29, 2026

Copy link
Copy Markdown

Refs #669

Adds csvslice with --start-row and --num-rows to select a range while keeping the header. The start is zero-based, matching the linked csvmedkit example. It streams the input and preserves values and quoted multiline fields.

Includes tests for limits, stdin, headerless input and the common CSV options, plus docs and the man page.

Tested with pytest --cov csvkit (387 passed, 4 skipped), flake8, isort, check-manifest and a Sphinx man build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant