Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
store_id
int64
0
66
article_id
int64
0
296
product_group
int64
20.3k
590k
division
int64
203
5.9k
department
int64
2
59
department_group
int64
1
12
store_format
int64
1
5
format
int64
13
521
0
126
301,202
3,012
30
11
1
13
0
182
440,403
4,404
44
11
1
13
1
124
240,201
2,402
24
11
1
13
2
124
240,201
2,402
24
11
1
13
2
126
301,202
3,012
30
11
1
13
3
126
301,202
3,012
30
11
1
13
4
124
240,201
2,402
24
11
1
13
4
126
301,202
3,012
30
11
1
13
5
126
301,202
3,012
30
11
1
13
6
124
240,201
2,402
24
11
1
13
7
126
301,202
3,012
30
11
1
13
8
126
301,202
3,012
30
11
1
13
9
49
40,215
402
4
5
1
13
9
124
240,201
2,402
24
11
1
13
9
126
301,202
3,012
30
11
1
13
10
126
301,202
3,012
30
11
1
13
11
126
301,202
3,012
30
11
1
13
12
124
240,201
2,402
24
11
1
13
13
103
301,202
3,012
30
11
1
13
14
124
240,201
2,402
24
11
1
13
14
126
301,202
3,012
30
11
1
13
15
126
301,202
3,012
30
11
1
13
16
126
301,202
3,012
30
11
1
13
17
126
301,202
3,012
30
11
1
13
18
124
240,201
2,402
24
11
1
13
18
126
301,202
3,012
30
11
1
13
19
17
240,201
2,402
24
11
1
13
19
103
301,202
3,012
30
11
1
13
20
126
301,202
3,012
30
11
1
13
21
124
240,201
2,402
24
11
1
13
21
126
301,202
3,012
30
11
1
13
22
126
301,202
3,012
30
11
1
13
23
124
240,201
2,402
24
11
1
13
24
126
301,202
3,012
30
11
1
13
25
124
240,201
2,402
24
11
1
13
25
126
301,202
3,012
30
11
1
13
26
126
301,202
3,012
30
11
1
13
27
124
240,201
2,402
24
11
1
13
27
126
301,202
3,012
30
11
1
13
28
17
240,201
2,402
24
11
1
13
28
103
301,202
3,012
30
11
1
13
29
17
240,201
2,402
24
11
1
13
30
126
301,202
3,012
30
11
1
13
31
126
301,202
3,012
30
11
1
13
32
124
240,201
2,402
24
11
1
13
32
126
301,202
3,012
30
11
1
13
33
126
301,202
3,012
30
11
1
13
34
17
240,201
2,402
24
11
1
13
34
103
301,202
3,012
30
11
1
13
35
17
240,201
2,402
24
11
1
13
36
124
240,201
2,402
24
11
1
13
36
126
301,202
3,012
30
11
1
13
37
103
301,202
3,012
30
11
1
13
38
126
301,202
3,012
30
11
1
13
39
17
240,201
2,402
24
11
1
13
40
17
240,201
2,402
24
11
1
13
40
103
301,202
3,012
30
11
1
13
41
17
240,201
2,402
24
11
1
13
41
103
301,202
3,012
30
11
1
13
42
17
240,201
2,402
24
11
1
13
42
103
301,202
3,012
30
11
1
13
43
17
240,201
2,402
24
11
1
13
44
17
240,201
2,402
24
11
1
13
44
103
301,202
3,012
30
11
1
13
45
17
240,201
2,402
24
11
1
13
45
103
301,202
3,012
30
11
1
13
46
126
301,202
3,012
30
11
1
13
47
124
240,201
2,402
24
11
1
13
48
126
301,202
3,012
30
11
1
13
49
17
240,201
2,402
24
11
1
13
49
103
301,202
3,012
30
11
1
13
50
126
301,202
3,012
30
11
1
13
51
124
240,201
2,402
24
11
1
13
52
126
301,202
3,012
30
11
1
13
52
239
440,402
4,404
44
11
1
13
53
17
240,201
2,402
24
11
1
13
54
17
240,201
2,402
24
11
1
13
54
103
301,202
3,012
30
11
1
13
55
103
301,202
3,012
30
11
1
13
56
126
301,202
3,012
30
11
1
13
57
17
240,201
2,402
24
11
1
13
58
17
240,201
2,402
24
11
1
13
59
126
301,202
3,012
30
11
1
13
60
2
200,303
2,003
20
9
2
216
60
3
260,001
2,600
26
3
2
216
60
4
260,001
2,600
26
3
2
216
60
7
200,303
2,003
20
9
2
216
60
8
260,005
2,600
26
3
2
216
60
10
260,005
2,600
26
3
2
216
60
18
260,006
2,600
26
3
2
216
60
19
260,006
2,600
26
3
2
216
60
20
260,006
2,600
26
3
2
216
60
21
260,007
2,600
26
3
2
216
60
22
260,007
2,600
26
3
2
216
60
23
140,402
1,404
14
5
2
216
60
25
140,513
1,405
14
5
2
216
60
28
200,207
2,002
20
9
2
216
60
29
20,318
203
2
5
2
216
60
30
20,319
203
2
5
2
216
60
33
470,209
4,702
47
12
2
216
End of preview. Expand in Data Studio

Hackathon retail sets

Four retail datasets for a forecasting hackathon: Set A, Set B, Set C and Set D. Each set is one shop chain; they share no stores or articles. Values are as published by the sources; LemeBase renamed columns to shared plain names and dropped name columns (changes per set below). Files in a set have different columns, so load one file at a time, e.g. load_dataset("LemeBase/hackathon-retail-sets", "set-a", split="weekly").

Everything in one file: all-sets.zip (23 MB): set-a to set-d and test-shop exactly as published here, with ATTRIBUTION.md and LICENSE.txt. Or: huggingface-cli download LemeBase/hackathon-retail-sets --repo-type dataset.

Set A (set-a)

Weekly units sold and an in-stock flag per store × article, the article and store hierarchy (codes only), and stock on hand for one week.

File Rows Columns
articles.parquet 599 store_id, article_id, product_group, division, department, department_group, store_format, format
stock_snapshot.parquet 599 store_id, article_id, week_start, on_hand_start, units, missed_units, on_hand_end, in_transit_1w, in_transit_2w
weekly.parquet 98,835 store_id, article_id, week_start, units, in_stock

Licence: CC BY 4.0. Changed by LemeBase: Reshaped from one column per week to one row per week; columns renamed; cost columns of the stock snapshot dropped.

Set B (set-b)

Synthetic grocery data: baskets, sales lines, articles, stock levels and stock events, promotions.

File Rows Columns
articles.parquet 1,500 article_id, category, subcategory, unit_size, price, unit_cost
basket_promotions.parquet 68,573 transaction_id, line_no, promotion_id, mechanic, savings
baskets.parquet 167,823 transaction_id, customer_id, store_id, timestamp, subtotal, tax, total, items, payment_type, weekday
promotion_articles.parquet 3,099 promotion_id, article_id
promotion_stores.parquet 149 promotion_id, store_id
promotions.parquet 264 bundle_qty, buy_qty, can_stack, category, end_date, get_qty, get_type, mechanic, percent_off, priority, promotion_id, scope_type, start_date
sales_lines.parquet 504,000 transaction_id, line_no, article_id, units, unit_price, line_subtotal, line_discount, line_total
stock.parquet 7,970 article_id, store_id, on_hand, reorder_point, price_override_cents, active
stock_events.parquet 26,215 timestamp, store_id, article_id, delta, reason

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.

Set C (set-c)

One row per store × article × day: units sold, sales, discount, stock on hand, receipt and sale recency, phasing-out flag.

File Rows Columns
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

Licence: CC BY 4.0. Changed by LemeBase: Columns renamed; text categories replaced by codes.

Set D (set-d)

Daily sales lines per store × article with sales type and returns, and stock on hand per store × article over date ranges.

File Rows Columns
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
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

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.

Test shop (test-shop)

One real shop, not one of the four sets: the shop the hackathon scores your forecast on. This folder holds its weekly history only; the 13 weeks that follow are hidden.

File Rows Columns
history.parquet 415,272 article_id, week_start, units, on_hand
  • One row per article and week (week_start is a Monday). Every article has every week; units 0 = no sale.
  • units: units sold that week, in the shop's own selling unit (a pack, a bottle, a piece).
  • on_hand: stock at the end of the week as the shop's stock ledger recorded it, carried forward through weeks without a movement; empty before the article's first ledger entry. The ledger does not add up (opening stock plus receipts minus issues matches the recorded stock on only about 56% of rows) and some values are negative, so treat it as a noisy signal.
  • Dates are moved by a fixed number of whole weeks (weekdays kept); article ids are random; names and categories are removed.
  • To forecast: the 13 Mondays after the last history week (2023-04-24 to 2023-07-17), the same for every article. Upload format and scoring: the Submit tab, https://lemebase.com/hackathon/submit.

Licence: CC BY 4.0. Changed by LemeBase: aggregated to weeks, re-keyed, dates moved, columns dropped.

Shared column names

Column Meaning
date day
week_start Monday of the week
timestamp time of the event
store_id store
article_id article (SKU)
units units sold (negative = return where is_return is set)
on_hand units in stock
in_stock article was in stock that week
division product hierarchy level 1 (code)
category product hierarchy level 2 (code)
subcategory product hierarchy level 3 (code)
segment product hierarchy level 4 (code)
unit_price selling price per unit
unit_cost cost per unit
sales_amount sales value
cogs cost of goods sold
supplier_id supplier (pseudonymous id)
stock_status price status of the stock (code)
sales_type sales type code, e.g. FULL_PRICE, PROMO, MARKDOWN_TIER_1, CLEARANCE (codes vary by set)

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.


Sources and licences

Downloads last month
-