#1290·csvkit

csvclean: Provide machine-readable output

Author: hsegCreated Aug 5, 2025Updated Oct 4, 2025
Labelsfeaturecsvclean

Trying to solve #962 automatically, but csvclean emits its output in an inconvenient format. Would it be possible to have it emit its output in a programmatically-readable format? Eg have csvclean --machine-readable emit a table in the format

csv
rule,affected_lines,fix_parameters

so that I could just csvcut $(csvclean --machine-readable | csvsql 'select fix_parameters...') Alternatively, just give csvclean an --autoclean command that executes the cleaning routines it suggests.