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
  • #383
Closed
Open
Issue created Jan 25, 2015 by Administrator@rootContributor

csvstat doen't give counts for some columns

Created by: nealmcb

csvstat is great, and usually gives a sense of the mode of the data, via a count of how many rows have the most frequent values:

 4. LAST_NAME
        
        Nulls: True
        Unique values: 307123
        5 most frequent values:
                SMITH:  28155
                JOHNSON:        23713
                MARTINEZ:       18465
                MILLER: 16916
                BROWN:  15428
        Max length: 28

But sometimes it doesn't, perhaps when there less than some predefined number of unique values:

28. STATUS
        
        Nulls: False
        Values: Active, Inactive

I'd like to get counts of the top 5 most frequent values for all columns, as long as there are any repeated values.

Assignee
Assign to
Time tracking