saraNour commited on
Commit
c439629
·
verified ·
1 Parent(s): 3f07993

Upload outputs/phase1_provenance.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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
- "columns": {
8
- "upc": "Universal Product Code. 1 null. 3,271 unique. Some reused across variants.",
9
- "external_id": "Voila retailer product ID. 4,440 unique. No nulls.",
10
- "brand": "Product brand. 11 variants of Compliments/Sensations.",
11
- "title": "Raw product title from Voila. 4,375 unique.",
12
- "price": "Price in CAD. 247 unique values.",
13
- "price_currency": "Always 'CAD'.",
14
- "size": "Raw size string from Voila. 631 unique values.",
15
- "size_amount": "Parsed numeric size amount. 307 nulls (6.9%).",
16
- "size_unit": "Parsed size unit. 307 nulls (6.9%).",
17
- "size_qty": "Size quantity multiplier. Usually 1.",
18
- "size_per_unit": "100% null. All values are NaN. DROPPED.",
19
- "size_unit_norm": "Normalized size unit. 307 nulls (6.9%).",
20
- "size_total": "100% null. All values are NaN. DROPPED.",
21
- "image_url": "Product image URL from Voila. 4,440 unique.",
22
- "source": "Always 'voila'.",
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). No usable data."
29
  },
30
  {
31
  "column": "size_total",
32
- "reason": "100% null (4,440/4,440 values are NaN). No usable data."
33
  }
34
  ],
35
- "preserved_columns": [
36
- "upc",
37
- "external_id",
38
- "brand",
39
- "title",
40
- "price",
41
- "price_currency",
42
- "size",
43
- "size_amount",
44
- "size_unit",
45
- "size_qty",
46
- "size_unit_norm",
47
- "image_url",
48
- "source",
49
- "source_url"
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
  }