Live data from Hacker News

XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal

github.com

1–10 of 29 posts

Re: XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal

#2
Something that would be insanely useful is if your tool could be users to do validations.

For example being able to define data types for each column and say required columns. And then run your tool as a validator and take the errors as an array that’d be amazing!

Coming from a dev who’s just over processing CSV files back into my apps.

Re: XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal

#3
post #2

Something that would be insanely useful is if your tool could be users to do validations. For example being able to define data types for each column and say required columns. And then run your tool as a validator and take the errors as an array that’d be amazing! Coming from a dev who’s just over processing CSV files back into my apps.

https://digital-preservation.github.io/csv-validator/

Re: XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal

#7
post #2

Something that would be insanely useful is if your tool could be users to do validations. For example being able to define data types for each column and say required columns. And then run your tool as a validator and take the errors as an array that’d be amazing! Coming from a dev who’s just over processing CSV files back into my apps.

You should take a look at the Frictionless data library https://framework.frictionlessdata.io/docs/guides/validating...

Re: XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal

#8
I prefer to use clickhouse-local for all my CSV needs as I don't need to learn a new language (or cli flags) and can just leverage SQL.

    clickhouse local --file medias.csv --query "SELECT edito, count() AS count from table group by all order by count FORMAT PrettyCompact"

   ┌─edito──────┬─count─┐
   │ agence     │     1 │
   │ agrégateur │    10 │
   │ plateforme │    14 │
   │ individu   │    30 │
   │ media      │   423 │
   └────────────┴───────┘
With clickhouse-local, I can do lot more as I can leverage full power of clickhouse.

Re: XAN: A Modern CSV-Centric Data Manipulation Toolkit for the Terminal

#10

I prefer to use clickhouse-local for all my CSV needs as I don't need to learn a new language (or cli flags) and can just leverage SQL. clickhouse local --file medias.csv --query "SELECT edito, count() AS count from table group by all order by count FORMAT PrettyCompact" ┌─edito──────┬─count─┐ │ agence │ 1 │ │ agrégateur │ 10 │ │ plateforme │ 14 │ │ individu │ 30 │ │ media │ 423 │ └────────────┴───────┘ With clickhou…

I use SQLite in a similar manner, but I'll have to check this out.
Post reply on HN