Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analyze data from stream or file

Preferably chain with sanitize_csv for input conditioning of CSV structured input data

TODO

  • handle escape characters

Usage: analyze_data [OPTIONS] [MODE] [FILE]

Arguments:
  [MODE]
          What mode to run the program in

          [default: number]

          Possible values:
          - number:       Run stats on input as number
          - string:       Run stats on input as string
          - group-number: Run stats on last column as number and interpret preceding columns as group
          - group-string: Run stats on last column as string and interpret preceding columns as group
          - csv:          Interpret input as CSV with headers and run stats for all

  [FILE]
          The path to the file to read, use - to read from stdin (must not be a tty)

          [default: -]

Options:
  -d, --input-delimiter <INPUT_DELIMITER>
          input delimiter

          [default: ,]

  -D, --output-delimiter <OUTPUT_DELIMITER>
          Optional output delimiter, default to human readable table output

  -p, --precision <PRECISION>
          Optional number of decimals to round for output

          [default: 0]

  -z, --zero-as-empty
          Count zeros as empty when parsing numbers

  -h, --help
          Print help (see a summary with '-h')

About

Calculate statistics for CSV or grouped data

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages