BurntSushi / xsv

A fast CSV command line toolkit written in Rust.
The Unlicense
10.38k stars 323 forks source link

Adding the `xsv pseudo` command #239

Closed Yomguithereal closed 4 years ago

Yomguithereal commented 4 years ago

Hello @BurntSushi,

Just a PR to add a xsv pseudo <column> command that can pseudonymise a column's value by replacing them by an incremental id.

I don't propose that this should be added to the tool but I just offer this to the community if it can help anyone. What's more I haven't tried to be particularly efficient with this as I only used std's hashmap and this can be quite memory-hungry based on the cardinality of the column.

Anyway, I wish you a good day (or evening, or whatever),