Upload outputs/phase1_provenance.json with huggingface_hub
Browse files- outputs/phase1_provenance.json +40 -35
outputs/phase1_provenance.json
CHANGED
|
@@ -4,48 +4,53 @@
|
|
| 4 |
"source_type": "HuggingFace dataset (private)",
|
| 5 |
"access_method": "huggingface_hub.hf_hub_download",
|
| 6 |
"original_source": "Voila.ca (Loblaw) Compliments private-label products",
|
| 7 |
-
"
|
| 8 |
-
|
| 9 |
-
"
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"source_url": "Product page URL on Voila. 4,440 unique."
|
| 24 |
},
|
| 25 |
"dropped_columns": [
|
| 26 |
{
|
| 27 |
"column": "size_per_unit",
|
| 28 |
-
"reason": "100% null (4,440/4,440 values are NaN)
|
| 29 |
},
|
| 30 |
{
|
| 31 |
"column": "size_total",
|
| 32 |
-
"reason": "100% null (4,440/4,440 values are NaN)
|
| 33 |
}
|
| 34 |
],
|
| 35 |
-
"
|
| 36 |
-
"upc",
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"source",
|
| 49 |
-
"
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
}
|
|
|
|
| 4 |
"source_type": "HuggingFace dataset (private)",
|
| 5 |
"access_method": "huggingface_hub.hf_hub_download",
|
| 6 |
"original_source": "Voila.ca (Loblaw) Compliments private-label products",
|
| 7 |
+
"pipeline_version": "2.0.0",
|
| 8 |
+
"cleaning_operations": [
|
| 9 |
+
"A. String normalization: trim whitespace, empty-string-to-null on all string columns",
|
| 10 |
+
"B. Brand cleaning: whitespace trim + case normalization, preserve raw in brand_raw",
|
| 11 |
+
"C. Title cleaning: whitespace trim + collapse repeated spaces, preserve raw in title_raw",
|
| 12 |
+
"D. UPC validation: format check, null audit, reused-UPC analysis (values NOT altered)",
|
| 13 |
+
"E. external_id validation: null + duplicate check (values NOT altered)",
|
| 14 |
+
"F. 100% null columns dropped: size_per_unit, size_total (documented, no information lost)"
|
| 15 |
+
],
|
| 16 |
+
"raw_vs_cleaned_fields": {
|
| 17 |
+
"brand_raw": "Original brand value from authoritative source, preserved for traceability",
|
| 18 |
+
"brand_clean": "Cleaned brand: whitespace trimmed, case normalized (e.g., 'COMPLIMENTS' -> 'Compliments')",
|
| 19 |
+
"title_raw": "Original title value from authoritative source, preserved for traceability",
|
| 20 |
+
"title_clean": "Cleaned title: whitespace trimmed, repeated spaces collapsed",
|
| 21 |
+
"upc_raw": "Original UPC value, preserved for traceability (values NOT altered)",
|
| 22 |
+
"external_id_raw": "Original external_id, preserved for traceability (values NOT altered)"
|
|
|
|
| 23 |
},
|
| 24 |
"dropped_columns": [
|
| 25 |
{
|
| 26 |
"column": "size_per_unit",
|
| 27 |
+
"reason": "100% null (4,440/4,440 values are NaN)"
|
| 28 |
},
|
| 29 |
{
|
| 30 |
"column": "size_total",
|
| 31 |
+
"reason": "100% null (4,440/4,440 values are NaN)"
|
| 32 |
}
|
| 33 |
],
|
| 34 |
+
"columns": {
|
| 35 |
+
"upc": "Universal Product Code. 1 null. Some reused across variants.",
|
| 36 |
+
"upc_raw": "Original UPC from source (preserved for traceability)",
|
| 37 |
+
"external_id": "Voila retailer product ID. Unique. No nulls.",
|
| 38 |
+
"external_id_raw": "Original external_id from source (preserved for traceability)",
|
| 39 |
+
"brand": "Original brand string from source.",
|
| 40 |
+
"brand_clean": "Cleaned brand: whitespace/case normalized.",
|
| 41 |
+
"brand_raw": "Original brand from source (preserved for traceability).",
|
| 42 |
+
"title": "Original product title from source.",
|
| 43 |
+
"title_clean": "Cleaned title: whitespace normalized.",
|
| 44 |
+
"title_raw": "Original title from source (preserved for traceability).",
|
| 45 |
+
"price": "Price in CAD.",
|
| 46 |
+
"price_currency": "Always 'CAD'.",
|
| 47 |
+
"size": "Raw size string from source.",
|
| 48 |
+
"size_amount": "Parsed numeric size amount.",
|
| 49 |
+
"size_unit": "Parsed size unit.",
|
| 50 |
+
"size_qty": "Size quantity multiplier.",
|
| 51 |
+
"size_unit_norm": "Normalized size unit.",
|
| 52 |
+
"image_url": "Product image URL from source.",
|
| 53 |
+
"source": "Always 'voila'.",
|
| 54 |
+
"source_url": "Product page URL on source."
|
| 55 |
+
}
|
| 56 |
}
|