Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 8 new columns ({'order_time', 'shipping_fee', 'order_id', 'customer_rating', 'is_cancelled', 'cost_amount', 'city', 'sales_amount'}) and 7 missing columns ({'cancelled_orders', 'avg_order_amount', 'cancellation_rate_pct', 'total_sales', 'valid_orders', 'total_orders', 'avg_customer_rating'}).

This happened while the csv dataset builder was generating data using

hf://datasets/toolathon123/project_20260813_012309_b5b3cd36/orders_20260813.csv (at revision cdbd29c22c0e3e45262442d487b1413eed85f058), ['hf://datasets/toolathon123/project_20260813_012309_b5b3cd36@cdbd29c22c0e3e45262442d487b1413eed85f058/analysis_results/aggregated_results.csv', 'hf://datasets/toolathon123/project_20260813_012309_b5b3cd36@cdbd29c22c0e3e45262442d487b1413eed85f058/orders_20260813.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              order_id: string
              order_time: string
              country: string
              city: string
              product_category: string
              sales_amount: double
              cost_amount: double
              shipping_fee: double
              customer_rating: double
              is_cancelled: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1494
              to
              {'country': Value('string'), 'product_category': Value('string'), 'total_orders': Value('int64'), 'valid_orders': Value('int64'), 'cancelled_orders': Value('int64'), 'cancellation_rate_pct': Value('float64'), 'total_sales': Value('float64'), 'avg_order_amount': Value('float64'), 'avg_customer_rating': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 8 new columns ({'order_time', 'shipping_fee', 'order_id', 'customer_rating', 'is_cancelled', 'cost_amount', 'city', 'sales_amount'}) and 7 missing columns ({'cancelled_orders', 'avg_order_amount', 'cancellation_rate_pct', 'total_sales', 'valid_orders', 'total_orders', 'avg_customer_rating'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/toolathon123/project_20260813_012309_b5b3cd36/orders_20260813.csv (at revision cdbd29c22c0e3e45262442d487b1413eed85f058), ['hf://datasets/toolathon123/project_20260813_012309_b5b3cd36@cdbd29c22c0e3e45262442d487b1413eed85f058/analysis_results/aggregated_results.csv', 'hf://datasets/toolathon123/project_20260813_012309_b5b3cd36@cdbd29c22c0e3e45262442d487b1413eed85f058/orders_20260813.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

country
string
product_category
string
total_orders
int64
valid_orders
int64
cancelled_orders
int64
cancellation_rate_pct
float64
total_sales
float64
avg_order_amount
float64
avg_customer_rating
float64
Egypt
Beauty & Personal Care
50
40
10
20
3,456.46
86.41
3.9
Egypt
Books & Media
40
35
5
12.5
1,532.19
43.78
3.7
Egypt
Clothing
49
42
7
14.29
4,884.77
116.3
3.7
Egypt
Electronics
56
42
14
25
30,079.13
716.17
3.9
Egypt
Groceries
38
36
2
5.26
3,499.27
97.2
3.7
Egypt
Home & Kitchen
46
41
5
10.87
9,813.21
239.35
3.7
Egypt
Sports & Outdoors
39
36
3
7.69
6,910.09
191.95
3.3
Egypt
Toys & Games
51
42
9
17.65
3,084.43
73.44
3.8
South Africa
Beauty & Personal Care
59
49
10
16.95
4,006.63
81.77
3.55
South Africa
Books & Media
43
40
3
6.98
1,924.02
48.1
3.2
South Africa
Clothing
36
34
2
5.56
3,678.71
108.2
3.65
South Africa
Electronics
46
40
6
13.04
31,345.55
783.64
3.5
South Africa
Groceries
50
42
8
16
3,864.44
92.01
3.6
South Africa
Home & Kitchen
49
42
7
14.29
9,028.35
214.96
3.5
South Africa
Sports & Outdoors
58
50
8
13.79
8,481.31
169.63
3.55
South Africa
Toys & Games
39
34
5
12.82
2,491.18
73.27
3.2
South Africa
Sports & Outdoors
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
South Africa
Toys & Games
null
null
null
null
null
null
null
Egypt
Groceries
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
South Africa
Groceries
null
null
null
null
null
null
null
South Africa
Toys & Games
null
null
null
null
null
null
null
Egypt
Sports & Outdoors
null
null
null
null
null
null
null
South Africa
Groceries
null
null
null
null
null
null
null
Egypt
Sports & Outdoors
null
null
null
null
null
null
null
Egypt
Sports & Outdoors
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
South Africa
Books & Media
null
null
null
null
null
null
null
Egypt
Home & Kitchen
null
null
null
null
null
null
null
South Africa
Toys & Games
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
Egypt
Home & Kitchen
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
South Africa
Toys & Games
null
null
null
null
null
null
null
Egypt
Beauty & Personal Care
null
null
null
null
null
null
null
South Africa
Clothing
null
null
null
null
null
null
null
South Africa
Toys & Games
null
null
null
null
null
null
null
South Africa
Groceries
null
null
null
null
null
null
null
South Africa
Sports & Outdoors
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
South Africa
Sports & Outdoors
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
South Africa
Clothing
null
null
null
null
null
null
null
South Africa
Books & Media
null
null
null
null
null
null
null
Egypt
Beauty & Personal Care
null
null
null
null
null
null
null
Egypt
Sports & Outdoors
null
null
null
null
null
null
null
Egypt
Beauty & Personal Care
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
South Africa
Toys & Games
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
Egypt
Clothing
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
South Africa
Groceries
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
Egypt
Groceries
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
Egypt
Home & Kitchen
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
South Africa
Books & Media
null
null
null
null
null
null
null
Egypt
Groceries
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
South Africa
Home & Kitchen
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
South Africa
Groceries
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
South Africa
Beauty & Personal Care
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
South Africa
Clothing
null
null
null
null
null
null
null
Egypt
Clothing
null
null
null
null
null
null
null
Egypt
Sports & Outdoors
null
null
null
null
null
null
null
Egypt
Home & Kitchen
null
null
null
null
null
null
null
Egypt
Toys & Games
null
null
null
null
null
null
null
South Africa
Clothing
null
null
null
null
null
null
null
Egypt
Electronics
null
null
null
null
null
null
null
Egypt
Groceries
null
null
null
null
null
null
null
South Africa
Clothing
null
null
null
null
null
null
null
Egypt
Beauty & Personal Care
null
null
null
null
null
null
null
Egypt
Sports & Outdoors
null
null
null
null
null
null
null
Egypt
Books & Media
null
null
null
null
null
null
null
South Africa
Electronics
null
null
null
null
null
null
null
Egypt
Home & Kitchen
null
null
null
null
null
null
null
South Africa
Home & Kitchen
null
null
null
null
null
null
null
End of preview.

African E-Commerce Sales Analytics — Project 20260813_012309_b5b3cd36

Real-time e-commerce order analytics for South Africa and Egypt (snapshot 2026-08-13).

Data

  • Raw dataset: orders_20260813.csv — 800 orders collected hourly by the real-time data pipeline.
  • Schema: order_id, order_time, country, city, product_category, sales_amount, cost_amount, shipping_fee, customer_rating, is_cancelled.

Analysis Results

Aggregated by country × product_category in analysis_results/:

  • aggregated_results.csv — result table (total sales, average order amount, cancelled count & rate, average customer rating)
  • analysis_results.json — full JSON report with data-quality summary and key findings

Data Quality Summary

Issue Count
Raw records 800
Removed — negative / zero sales_amount 28
Removed — abnormal high sales_amount (>10,000) 12
Removed — negative cost_amount 6
Removed — negative shipping_fee 5
Records kept after cleaning 749
Missing customer_rating imputed (segment median) 80
Cancelled orders 104 (13.89%)

Key Findings

  • Total non-cancelled sales: 128,079.74 (South Africa 64,820.19 vs Egypt 63,259.55).
  • Overall cancellation rate: 13.89%; highest segment is Egypt Electronics (25%).
  • Electronics is the top revenue driver with the highest average order value in both markets.
Downloads last month
11