Datasets:
Replace free-text category values with codes
Browse files- ATTRIBUTION.md +2 -1
- README.md +10 -10
- set-b/articles.parquet +2 -2
- set-b/baskets.parquet +1 -1
- set-b/promotions.parquet +2 -2
- set-c/daily.parquet +2 -2
- set-d/sales.parquet +2 -2
- set-d/stock.parquet +2 -2
ATTRIBUTION.md
CHANGED
|
@@ -10,7 +10,8 @@ This collection contains material from the four datasets below, each under the C
|
|
| 10 |
|
| 11 |
## Changes made by LemeBase
|
| 12 |
|
| 13 |
-
- Converted to Parquet;
|
| 14 |
- Columns renamed to shared plain names; one weekly table reshaped from one column per week to one row per week.
|
|
|
|
| 15 |
- Dropped: product names and descriptions, brands, store names and addresses, customer tables, derived tables, challenge cost columns.
|
| 16 |
- Renamed and regrouped into Set A to Set D for a forecasting hackathon.
|
|
|
|
| 10 |
|
| 11 |
## Changes made by LemeBase
|
| 12 |
|
| 13 |
+
- Converted to Parquet; numbers and dates unchanged.
|
| 14 |
- Columns renamed to shared plain names; one weekly table reshaped from one column per week to one row per week.
|
| 15 |
+
- Text categories (product hierarchy, supplier, sales channel, store type, sales and stock status, unit sizes, weekdays) replaced by codes.
|
| 16 |
- Dropped: product names and descriptions, brands, store names and addresses, customer tables, derived tables, challenge cost columns.
|
| 17 |
- Renamed and regrouped into Set A to Set D for a forecasting hackathon.
|
README.md
CHANGED
|
@@ -83,7 +83,7 @@ Licence: CC BY 4.0. Changed by LemeBase: Reshaped from one column per week to on
|
|
| 83 |
| `stock.parquet` | 7,970 | article_id, store_id, on_hand, reorder_point, price_override_cents, active |
|
| 84 |
| `stock_events.parquet` | 26,215 | timestamp, store_id, article_id, delta, reason |
|
| 85 |
|
| 86 |
-
Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; product names, brands, store names and addresses, the customer table and derived tables dropped.
|
| 87 |
|
| 88 |
## Set C (`set-c`)
|
| 89 |
|
|
@@ -93,7 +93,7 @@ One row per store × article × day: units sold, sales, discount, stock on hand,
|
|
| 93 |
|---|---|---|
|
| 94 |
| `daily.parquet` | 491,857 | date, store_id, article_id, division, category, subcategory, segment, is_return, units, sales_amount, cogs, discount_amount, discount_pct, on_hand, is_audit_anomaly, unit_cost, unit_price, latest_on_hand, stock_status, sales_type, last_receipt_date, last_sold_date, days_since_receipt, days_since_sale, is_phasing_out |
|
| 95 |
|
| 96 |
-
Licence: CC BY 4.0. Changed by LemeBase: Columns renamed.
|
| 97 |
|
| 98 |
## Set D (`set-d`)
|
| 99 |
|
|
@@ -104,7 +104,7 @@ Daily sales lines per store × article with sales type and returns, and stock on
|
|
| 104 |
| `sales.parquet` | 125,751 | date, sales_type, is_return, return_reason, supplier_id, article_id, division, category, subcategory, segment, store_id, sales_channel, units, sales_amount, cogs, transactions |
|
| 105 |
| `stock.parquet` | 284,755 | start_date, end_date, stock_status, supplier_id, article_id, division, category, subcategory, segment, store_id, store_type, sales_channel, on_hand, stock_value_at_price, stock_value_at_cost, unit_price, unit_cost |
|
| 106 |
|
| 107 |
-
Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; product descriptions dropped.
|
| 108 |
|
| 109 |
## Shared column names
|
| 110 |
|
|
@@ -118,19 +118,19 @@ Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; product descriptions d
|
|
| 118 |
| `units` | units sold (negative = return where is_return is set) |
|
| 119 |
| `on_hand` | units in stock |
|
| 120 |
| `in_stock` | article was in stock that week |
|
| 121 |
-
| `division` | product hierarchy level 1 |
|
| 122 |
-
| `category` | product hierarchy level 2 |
|
| 123 |
-
| `subcategory` | product hierarchy level 3 |
|
| 124 |
-
| `segment` | product hierarchy level 4 |
|
| 125 |
| `unit_price` | selling price per unit |
|
| 126 |
| `unit_cost` | cost per unit |
|
| 127 |
| `sales_amount` | sales value |
|
| 128 |
| `cogs` | cost of goods sold |
|
| 129 |
| `supplier_id` | supplier (pseudonymous id) |
|
| 130 |
-
| `stock_status` | price status of the stock |
|
| 131 |
-
| `sales_type` |
|
| 132 |
|
| 133 |
-
Other columns keep their meaning from the source and a plain snake_case name.
|
| 134 |
|
| 135 |
---
|
| 136 |
|
|
|
|
| 83 |
| `stock.parquet` | 7,970 | article_id, store_id, on_hand, reorder_point, price_override_cents, active |
|
| 84 |
| `stock_events.parquet` | 26,215 | timestamp, store_id, article_id, delta, reason |
|
| 85 |
|
| 86 |
+
Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; product names, brands, store names and addresses, the customer table and derived tables dropped; text categories, unit sizes and weekdays replaced by codes.
|
| 87 |
|
| 88 |
## Set C (`set-c`)
|
| 89 |
|
|
|
|
| 93 |
|---|---|---|
|
| 94 |
| `daily.parquet` | 491,857 | date, store_id, article_id, division, category, subcategory, segment, is_return, units, sales_amount, cogs, discount_amount, discount_pct, on_hand, is_audit_anomaly, unit_cost, unit_price, latest_on_hand, stock_status, sales_type, last_receipt_date, last_sold_date, days_since_receipt, days_since_sale, is_phasing_out |
|
| 95 |
|
| 96 |
+
Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; text categories replaced by codes.
|
| 97 |
|
| 98 |
## Set D (`set-d`)
|
| 99 |
|
|
|
|
| 104 |
| `sales.parquet` | 125,751 | date, sales_type, is_return, return_reason, supplier_id, article_id, division, category, subcategory, segment, store_id, sales_channel, units, sales_amount, cogs, transactions |
|
| 105 |
| `stock.parquet` | 284,755 | start_date, end_date, stock_status, supplier_id, article_id, division, category, subcategory, segment, store_id, store_type, sales_channel, on_hand, stock_value_at_price, stock_value_at_cost, unit_price, unit_cost |
|
| 106 |
|
| 107 |
+
Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; product descriptions dropped; product hierarchy, supplier, sales channel, store type, sales type and stock status text replaced by codes.
|
| 108 |
|
| 109 |
## Shared column names
|
| 110 |
|
|
|
|
| 118 |
| `units` | units sold (negative = return where is_return is set) |
|
| 119 |
| `on_hand` | units in stock |
|
| 120 |
| `in_stock` | article was in stock that week |
|
| 121 |
+
| `division` | product hierarchy level 1 (code) |
|
| 122 |
+
| `category` | product hierarchy level 2 (code) |
|
| 123 |
+
| `subcategory` | product hierarchy level 3 (code) |
|
| 124 |
+
| `segment` | product hierarchy level 4 (code) |
|
| 125 |
| `unit_price` | selling price per unit |
|
| 126 |
| `unit_cost` | cost per unit |
|
| 127 |
| `sales_amount` | sales value |
|
| 128 |
| `cogs` | cost of goods sold |
|
| 129 |
| `supplier_id` | supplier (pseudonymous id) |
|
| 130 |
+
| `stock_status` | price status of the stock (code) |
|
| 131 |
+
| `sales_type` | sales type code, e.g. FULL_PRICE, PROMO, MARKDOWN_TIER_1, CLEARANCE (codes vary by set) |
|
| 132 |
|
| 133 |
+
Other columns keep their meaning from the source and a plain snake_case name. Text values are codes (e.g. DIV-1, CAT-11, SCAT-011); within a set the same value always has the same code, and each code sits under the same parent as in the source.
|
| 134 |
|
| 135 |
---
|
| 136 |
|
set-b/articles.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbf605d93472efd40a76b3f624cf9aa3fbf79eaed9028f120f155c8809a127a9
|
| 3 |
+
size 13598
|
set-b/baskets.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2474438
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34108d98ba6e30ce6aae8412a03e9cfb361e34142449103705a320b3f4318c22
|
| 3 |
size 2474438
|
set-b/promotions.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7f462174f5b43dcd8d8f651ac6d84c2c49f051475901b4fe86d26089d0671f5
|
| 3 |
+
size 6775
|
set-c/daily.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01968a5c451df16b777a2de7bae14164f0b69dac0e96fd95f94ea2bab9125ffb
|
| 3 |
+
size 8884448
|
set-d/sales.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7566f1fbfaf5071ccfc7a0bcfa1de0d51d13130c01a42f879da3ad0081de41b9
|
| 3 |
+
size 1405599
|
set-d/stock.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f2da061ccbbb910d392cbc095f65458af48d6cc5d1a73d2a1c060946f037634
|
| 3 |
+
size 4356278
|