Socket
Book a DemoInstallSign in
Socket

csv-stat-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-stat-cli

Command-line utility for checking statistical features of CSV file(s)

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

csv-cli

Command-line utility for checking statistical features of CSV file(s)

Install

npm i csv-stat-cli

Usage

csv-stat <subcommand> [options...]

Commands:
  csv-stat describe <glob>         Describe statistical features of given CSVs
  csv-stat unique <glob> <column>  Describe statistical features of given CSVs
  csv-stat intersections <glob>    Describe statistical features of given CSVs

Options:
      --help                             Show help                     [boolean]
      --version                          Show version number           [boolean]
  -H, --avoid-using-first-row-as-header               [boolean] [default: false]

describe

csv-stat describe example/test.csv
test (1000 rows)
 column  count  miss  uniq  mean            min         max        std              uniq values
 int     1000   0%    1000  1076603284.784  1000107808  995380654  614202595.32212  995380654 (1, 0.10%)
                                                                                    992123857 (1, 0.10%)
                                                                                    99049246 (1, 0.10%)
                                                                                    987956586 (1, 0.10%)
                                                                                    98565729 (1, 0.10%)
 str     1000   0%    5                                                             apple (226, 22.60%)
                                                                                    grape (205, 20.50%)
                                                                                    strawberry (200, 20.00%)
                                                                                    banana (197, 19.70%)
                                                                                    orange (172, 17.20%)

unique

csv-stat unique example/test.csv str
 value       count  percentage
 apple       226    22.600%
 grape       205    20.500%
 strawberry  200    20.000%
 banana      197    19.700%
 orange      172    17.200%

Development

npm i
npx ts-node -T src/cli.ts --help

FAQs

Package last updated on 19 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.