wireservice / wireservice/csvkit

Option to limit the number of rows output (head, tail, slice)

Open
#669 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature framework
Dominant language
Python
Stars
6.4k
Forks
689
Avg merge
1m
Merged PRs (30d)
1

Description

Hey I have a large CSV I'm looking to break up into smaller chunks to perform an import. Is this functionality already available with csvcut or csvgrep. I was reviewing the docs but I didn't see any avenue to do it?

If this isn't currently possible I'd be happy to contribute it to the project.

Cheers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the csvcut and csvgrep command documentation and entry points to see how row selection is currently handled. Determine where an option to limit output rows belongs, then verify that the selected head, tail, or slice behavior works for large CSV imports and is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.