Git Product home page Git Product logo

csvt's People

Contributors

onozaty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

csvt's Issues

unique - 重複する行を取り除く

指定したカラムで一意になるように。
複数カラムも指定可能にするが、省略(全カラム)は許容しない。(でかいファイルだとメモリが足りなくなる)

concat - 結合

複数のCSVファイルを結合する。
カラムは一致する必要あり。

add - カラムを追加

指定した名前でカラムを追加する。
固定値を入れるか、別のカラムからコピーを行う。

Multiple files can be specified with concat

before

csvt concat -1 INPUT1 -2 INPUT2 -o OUTPUT

after

csvt concat -i INPUT1 -i INPUT2 [-i INPUT3 ...] -o OUTPUT
csvt concat -i input1.csv -i input2.csv -i input3.csv -o output.csv

split - 分割

指定件数で分割する。
出力ファイル名はベースとなる名前を指定する形で。

slice - 一部の行を取り出す

開始行と終了行を指定して、一部の行を取り出します。
開始行を省略したら1行目、終了行を省略したら末尾の行となります。

splitと同じようなことも、このコマンドを繰り返し使えばできることになります。

exclude - 取り除く

カラム指定で、CSV1からCSV2にあるものを取り除いたCSVを作成する。

sort - ソート

指定したカラムでソートする。
デフォルトは文字列。オプションで数字として。

値毎にカウント

GROUP BY + COUNT のイメージ。

サブコマンド名はgroup aggregate あたりか。

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.