Once your CSV files are properly sorted on a primary key, they can also be efficiently compared to produce a diff file, using my other lib https://github.com ...
Extended header section of parsable attributes, introduced by '#'. Header row of variable name and units for each column. Data rows. Depending on the presence of special keys in the extended header ...