wireservice / wireservice/csvkit

csvcut/csvgrep: Allow for numeric column names and column names containing hyphen (`--column-names`, `--column-indexes`)

Open
#468 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have data with a column names like

pre-k,k,01,02,03,04,05

where the numbers refer to grades. I can't select the 3rd grade column using csvcut

csvcut -c "k,03" returns the kindergarten row and the 2nd grade row (the fourth column)

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 reproducing the issue in csvcut with the header pre-k,k,01,02,03,04,05 and -c "k,03", then trace how csvcut and csvgrep process --column-names and --column-indexes. Done means numeric and hyphen-containing column names select the intended columns without breaking existing selection behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.