Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Issues
  • #992
Closed
Open
Issue created Oct 18, 2018 by Administrator@rootContributor

csvcut: Special case if only -C is provided for CSVs with ragged rows

Created by: michaelmior

input.csv

foo,bar
foo,bar,baz
foo
$ csvcut -H -C 1 input.csv
bar
bar
""

I expected the second line to be bar,baz since all I asked for was to remove the first column. Similarly, I expected the third line to be empty since there was only one column in the input file which was removed. I can see why in many cases the output above may be desired, but that seems like more of a job for csvclean.

Assignee
Assign to
Time tracking