Giter Site home page Giter Site logo

csvxp's Introduction

CSV Explorer

The CSV Explorer is a command-line utility written in Go for dealing with CSV files. Anyone who deals with data munging will know the importance of inspecting data files for consistency, and this is a tool that can help.

Installation

$ go get github.com/wyc/csvxp
$ go install github.com/wyc/csvxp

Features and Examples

Please refer to this CSV data set in file.csv for the examples below:

Header1,Header2,Header3
a,b,c
1,2,3

Column headers of a CSV file

$ csvxp -column-headers file.csv
Header1
Header2
Header3

Values of a single column

$ csvxp -column-name "Header1" file.csv
a
1
$ csvxp -column-name "Header3" file.csv
c
3

Values of multiple columns

$ csvxp -column-names "Header1","Header3" file.csv
a,c
1,3

Calculating title min mean max column value length statistics across all rows:

$ csvxp -column-stats file.csv
"Header1" 1 1 1
"Header2" 1 1 1
"Header3" 1 1 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.