Coder Social home page Coder Social logo

Comments (2)

a5dur avatar a5dur commented on May 27, 2024 2

Great question! Let's clarify that:

They do achieve similar results, but there's a subtle difference in how they concatenate and treat grouping.

cat rows assumes that all CSV files have the same structure (same columns in the same order).
While rowskey concatenates rows based on a specified key or column. It identifies a common key column in all csv files and merges the rows that share the same key. the group option introduces a grouping column indicating the source of each row.

So, technically, you are correct: qsv cat rows is equivalent to qsv cat rowskey --group none.
Both concatenate rows without introducing a special grouping column...

but the --group option in qsv cat rowskey becomes more relevant when you want to customize the grouping behavior, for example, grouping by the full file path, filename, or other options. If --group none is used, it essentially behaves like qsv cat rows.

I hope this helps clarify the difference! also qsv also has a very user-friendly website where you could learn more and test out this command

from qsv.

jqnatividad avatar jqnatividad commented on May 27, 2024

Thanks @a5dur for the expansive answer! Moving this to the Discussion area's FAQ section so other folks with the same query can find it easily.

from qsv.

Related Issues (20)

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.