simonw / csv-diff

Python CLI tool and library for diffing CSV and JSON files
Apache License 2.0
292 stars 47 forks source link

Added support for multi-keys on CSVs #37

Open AlpineStranger opened 8 months ago

AlpineStranger commented 8 months ago

I've added support to use multiple keys on CSVs for the comparison. If the provide key is a list of column names instead of a single column name, the code kicks in to create a concatenated key comprised of the provided columns. An optional key separator can be provided to affect comparison text displays.