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
  • #1070
Closed
Open
Issue created Apr 06, 2020 by Jon Culver@bahoo

Question / Suggestion: Add a flag for suppressing decimals ?

My use-case: I use csvsql to quickly build schemas based on text files. I'm very happy with it, but sometimes forget to modify some DECIMAL fields to be integers, as a lot of the data I work with is relational and uses integer-based foreign keys.

The docs are unambiguous in its opinion, for good reason I think:

Output favors consistency over brevity: Numbers always include at least one decimal place, even if they are round

But I wondered if adding an optional flag, i.e. --int to suppress this behavior, would be a welcome change? I may put together a PR if there's interest.

Assignee
Assign to
Time tracking