/file-compare

A simple python script to compare CSV files (with headers) field by field

Primary LanguagePython

file-compare

A simple python script to compare CSV files (with header) field by field

It will compare two comma separeted files using the header as fields reference. For each line, corrispondent fields in the two files will be compared and, if found, differences will be printed out in the format: "Line number, Column number and column, Expected: Value (filea) --> Actual: Value (fileb).

filea.csv and fileb.csv are the two files used as an example (downloaded from internet)