DataKit 0.5.0 public preview
Repair an order without losing the evidence.
Order 00125 has an invalid amount and date. Follow it from the source CSV through a typed import and a repair by order ID.
Order ID
00125CSV line 4
| Field | Source value |
|---|---|
amount | not-a-number |
event_date | not-a-date |
The original values are text.
The leading zeroes in the order ID identify this record. The amount and date are the fields to inspect.
What will DataKit store in the amount and date fields when this template allows failed conversions?
This walkthrough uses the published synthetic fixture. To process your own data, run DataKit locally.
To review CSV changes and joins together in CI, use the CSV Review Starter template with its synthetic orders and shipments.
Run the same repair
Use Python 3.11 or 3.12. Download the 0.5.0 wheel, check its SHA-256 against the release checksum, and put the wheel and both sample files in one folder. The pipeline previews seven rows and a score of 98.37 against a minimum of 90.
python -m pip install ./hanziva_datakit-0.5.0-py3-none-any.whl
datakit run import_edge_cases.pipeline.json --preview
datakit run import_edge_cases.pipeline.json --output ./import-edge-cases.cleaned.parquet
Choose a new output file. The CSV and template are unchanged copies from the tagged source. Full CLI and workbench walkthrough