
Round Tripping Exports Back Into Imports Without Drift
A CSV export should re-import to the same data. A test where identical files hid a NULL turned into an empty string, and how to test round trips on rows.
Tag
52 posts

A CSV export should re-import to the same data. A test where identical files hid a NULL turned into an empty string, and how to test round trips on rows.

Lock a shared Excel input sheet so people can enter data but not break it: protect the sheet, allow the right actions, handle tables, keep a master.

Check an incoming Excel workbook against a template in Python: headers, column types, required cells, allowed values, duplicates and a clear report.

Use Excel conditional formatting to flag duplicates, blanks, out of range values, bad dates and unknown codes as people type, with formulas that stay fast.

Use Excel tables for data entry: automatic expansion, calculated columns, structured references, validation that follows new rows, and reading tables by name.

Protect Excel formula cells from accidental edits: lock cells, protect the sheet, allow sorting and filters, hide formulas, and set it up from code.

How Excel data validation lists behave and where they stop: the 255 character typed list, range sources, long lists, dependent dropdowns and pasting.

Control what goes into a shared spreadsheet: templates, data validation, tables, protection, error flags and import checks that stop bad data at the source.

A feed with a raw ampersand, a missing id, a bad date, a duplicate id and an extra element: repair what is safe, quarantine the rest, report each reject.

Check a Merchant-style product feed before loading it: required fields, price format, availability values, GTIN check digits, duplicate ids and links.

Four CSV validators run on the same broken files: qsv validate, csvkit csvclean, CSVLint and Frictionless. What each reports, how it exits and which to use.

Describe a CSV's delimiter, header, column names, types and keys in a CSVW metadata file, then use it to read the file correctly. Includes a working example.