The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 11 new columns ({'detention_minutes', 'actual_datetime', 'load_id', 'event_id', 'trip_id', 'location_state', 'on_time_flag', 'location_city', 'scheduled_datetime', 'facility_id', 'event_type'}) and 8 missing columns ({'credit_terms_days', 'contract_start_date', 'account_status', 'customer_id', 'primary_freight_type', 'customer_type', 'annual_revenue_potential', 'customer_name'}).
This happened while the csv dataset builder was generating data using
hf://datasets/yogape/logistics-operations/delivery_events.csv (at revision f37993014f3c89beec9b44490d5b2c5be6f34856), [/tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/customers.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/customers.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/delivery_events.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/delivery_events.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/driver_monthly_metrics.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/driver_monthly_metrics.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/drivers.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/drivers.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/facilities.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/facilities.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/fuel_purchases.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/fuel_purchases.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/loads.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/loads.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/maintenance_records.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/maintenance_records.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/routes.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/routes.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/safety_incidents.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/safety_incidents.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/trailers.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/trailers.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/trips.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/trips.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/truck_utilization_metrics.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/truck_utilization_metrics.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/trucks.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/trucks.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.12/site-packages/datasets/builder.py", line 1800, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/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.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
event_id: string
load_id: string
trip_id: string
event_type: string
facility_id: string
scheduled_datetime: string
actual_datetime: string
detention_minutes: int64
on_time_flag: bool
location_city: string
location_state: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1619
to
{'customer_id': Value('string'), 'customer_name': Value('string'), 'customer_type': Value('string'), 'credit_terms_days': Value('int64'), 'primary_freight_type': Value('string'), 'account_status': Value('string'), 'contract_start_date': Value('string'), 'annual_revenue_potential': Value('int64')}
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 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1802, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
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 11 new columns ({'detention_minutes', 'actual_datetime', 'load_id', 'event_id', 'trip_id', 'location_state', 'on_time_flag', 'location_city', 'scheduled_datetime', 'facility_id', 'event_type'}) and 8 missing columns ({'credit_terms_days', 'contract_start_date', 'account_status', 'customer_id', 'primary_freight_type', 'customer_type', 'annual_revenue_potential', 'customer_name'}).
This happened while the csv dataset builder was generating data using
hf://datasets/yogape/logistics-operations/delivery_events.csv (at revision f37993014f3c89beec9b44490d5b2c5be6f34856), [/tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/customers.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/customers.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/delivery_events.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/delivery_events.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/driver_monthly_metrics.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/driver_monthly_metrics.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/drivers.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/drivers.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/facilities.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/facilities.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/fuel_purchases.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/fuel_purchases.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/loads.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/loads.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/maintenance_records.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/maintenance_records.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/routes.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/routes.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/safety_incidents.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/safety_incidents.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/trailers.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/trailers.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/trips.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/trips.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/truck_utilization_metrics.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/truck_utilization_metrics.csv), /tmp/hf-datasets-cache/medium/datasets/64625022149999-config-parquet-and-info-yogape-logistics-operatio-768efe4d/hub/datasets--yogape--logistics-operations/snapshots/f37993014f3c89beec9b44490d5b2c5be6f34856/trucks.csv (origin=hf://datasets/yogape/logistics-operations@f37993014f3c89beec9b44490d5b2c5be6f34856/trucks.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.
customer_id string | customer_name string | customer_type string | credit_terms_days int64 | primary_freight_type string | account_status string | contract_start_date string | annual_revenue_potential int64 |
|---|---|---|---|---|---|---|---|
CUST00001 | Metro Wholesale | Dedicated | 60 | General | Inactive | 2020-02-20 | 985,117 |
CUST00002 | National Retail | Contract | 30 | Retail | Active | 2021-06-02 | 4,936,566 |
CUST00003 | XYZ Industries | Contract | 30 | Consumer Goods | Active | 2020-09-04 | 3,102,814 |
CUST00004 | American Corp | Contract | 15 | Food/Beverage | Active | 2020-11-29 | 3,948,027 |
CUST00005 | American Distribution | Spot | 45 | Consumer Goods | Active | 2020-02-04 | 3,682,564 |
CUST00006 | American Industries | Dedicated | 30 | Consumer Goods | Active | 2021-02-16 | 973,274 |
CUST00007 | Superior Distribution | Spot | 30 | Food/Beverage | Active | 2021-02-05 | 1,499,297 |
CUST00008 | American Logistics | Contract | 30 | Automotive | Inactive | 2021-07-23 | 1,613,275 |
CUST00009 | XYZ Wholesale | Contract | 30 | Retail | Inactive | 2020-03-28 | 4,713,444 |
CUST00010 | National Logistics | Dedicated | 45 | Automotive | Active | 2021-11-19 | 3,468,505 |
CUST00011 | First Group | Dedicated | 15 | Electronics | Active | 2020-06-18 | 4,333,669 |
CUST00012 | ABC Distribution | Dedicated | 30 | Electronics | Active | 2020-07-17 | 2,931,263 |
CUST00013 | Pacific Corp | Dedicated | 60 | General | Active | 2021-08-29 | 1,426,880 |
CUST00014 | Elite Foods | Contract | 45 | Consumer Goods | Active | 2021-04-17 | 4,578,681 |
CUST00015 | First Group | Spot | 15 | Automotive | Active | 2020-08-27 | 3,816,255 |
CUST00016 | United Industries | Dedicated | 60 | Food/Beverage | Active | 2020-03-19 | 3,055,508 |
CUST00017 | Superior Supply Chain | Dedicated | 60 | Automotive | Active | 2021-03-02 | 2,743,711 |
CUST00018 | ABC Retail | Dedicated | 60 | General | Active | 2021-06-12 | 4,714,416 |
CUST00019 | American Supply Chain | Contract | 30 | Retail | Active | 2020-12-28 | 2,823,396 |
CUST00020 | First Corp | Contract | 30 | Consumer Goods | Inactive | 2021-11-09 | 3,218,209 |
CUST00021 | Elite Industries | Dedicated | 60 | Consumer Goods | Active | 2020-02-19 | 3,558,986 |
CUST00022 | Continental Supply Chain | Contract | 15 | Automotive | Active | 2021-05-23 | 3,712,034 |
CUST00023 | Continental Industries | Spot | 30 | General | Active | 2021-09-08 | 2,813,302 |
CUST00024 | XYZ Distribution | Contract | 15 | Electronics | Active | 2021-05-05 | 2,119,327 |
CUST00025 | Pacific Retail | Contract | 30 | Food/Beverage | Inactive | 2020-03-24 | 4,824,000 |
CUST00026 | ABC Supply Chain | Dedicated | 30 | Retail | Inactive | 2020-10-14 | 4,677,044 |
CUST00027 | Superior Foods | Spot | 30 | Automotive | Active | 2021-02-03 | 1,894,559 |
CUST00028 | First Group | Contract | 15 | Automotive | Active | 2021-12-17 | 3,246,257 |
CUST00029 | Superior Distribution | Dedicated | 30 | Food/Beverage | Active | 2021-07-14 | 4,715,736 |
CUST00030 | ABC Manufacturing | Spot | 15 | Electronics | Active | 2021-03-25 | 2,231,454 |
CUST00031 | American Manufacturing | Dedicated | 30 | Automotive | Active | 2020-05-13 | 3,119,970 |
CUST00032 | Continental Wholesale | Dedicated | 45 | Food/Beverage | Active | 2021-09-01 | 3,895,035 |
CUST00033 | XYZ Foods | Contract | 30 | Consumer Goods | Active | 2020-11-22 | 3,853,900 |
CUST00034 | Elite Retail | Contract | 60 | Consumer Goods | Active | 2021-04-28 | 3,431,037 |
CUST00035 | United Distribution | Spot | 15 | Food/Beverage | Active | 2021-12-23 | 101,641 |
CUST00036 | National Retail | Spot | 45 | Retail | Active | 2021-11-19 | 390,773 |
CUST00037 | American Retail | Spot | 15 | Consumer Goods | Active | 2020-05-16 | 2,486,409 |
CUST00038 | Continental Supply Chain | Dedicated | 30 | Food/Beverage | Active | 2020-01-25 | 236,754 |
CUST00039 | XYZ Wholesale | Contract | 60 | Food/Beverage | Active | 2020-09-02 | 4,442,022 |
CUST00040 | ABC Corp | Contract | 60 | Consumer Goods | Active | 2020-01-28 | 1,233,181 |
CUST00041 | XYZ Industries | Dedicated | 60 | Food/Beverage | Active | 2020-05-01 | 2,632,031 |
CUST00042 | American Corp | Dedicated | 30 | Automotive | Active | 2021-07-27 | 155,103 |
CUST00043 | First Manufacturing | Spot | 30 | Food/Beverage | Inactive | 2020-12-17 | 2,619,383 |
CUST00044 | American Logistics | Contract | 60 | Food/Beverage | Active | 2021-10-02 | 1,961,320 |
CUST00045 | First Logistics | Dedicated | 30 | Food/Beverage | Active | 2021-04-22 | 1,902,064 |
CUST00046 | First Wholesale | Dedicated | 30 | Food/Beverage | Active | 2021-07-24 | 2,741,611 |
CUST00047 | Elite Industries | Spot | 45 | Electronics | Inactive | 2020-08-08 | 282,044 |
CUST00048 | First Manufacturing | Spot | 30 | Automotive | Active | 2021-09-30 | 2,414,896 |
CUST00049 | Continental Corp | Spot | 45 | Food/Beverage | Active | 2020-01-30 | 4,744,463 |
CUST00050 | Global Manufacturing | Spot | 60 | General | Active | 2020-04-08 | 4,388,856 |
CUST00051 | XYZ Wholesale | Contract | 15 | General | Inactive | 2021-01-20 | 4,766,776 |
CUST00052 | Metro Corp | Contract | 30 | General | Active | 2020-04-01 | 4,887,111 |
CUST00053 | Elite Supply Chain | Spot | 60 | Consumer Goods | Active | 2021-11-01 | 4,895,027 |
CUST00054 | First Wholesale | Contract | 60 | Consumer Goods | Active | 2021-11-01 | 1,397,841 |
CUST00055 | National Corp | Contract | 30 | Retail | Active | 2021-01-02 | 890,937 |
CUST00056 | Continental Retail | Dedicated | 15 | Electronics | Active | 2020-03-12 | 416,555 |
CUST00057 | Premier Wholesale | Contract | 15 | General | Active | 2021-07-28 | 3,961,861 |
CUST00058 | Superior Foods | Contract | 30 | Electronics | Active | 2020-01-14 | 3,083,456 |
CUST00059 | American Manufacturing | Spot | 60 | General | Active | 2020-07-01 | 1,409,521 |
CUST00060 | Global Wholesale | Spot | 30 | Retail | Active | 2021-09-14 | 1,261,052 |
CUST00061 | Elite Group | Spot | 15 | Automotive | Active | 2021-08-26 | 2,322,881 |
CUST00062 | Premier Group | Dedicated | 30 | Electronics | Inactive | 2020-08-20 | 3,179,314 |
CUST00063 | Superior Group | Dedicated | 60 | Automotive | Active | 2021-05-08 | 4,983,476 |
CUST00064 | Metro Retail | Spot | 15 | Retail | Active | 2021-02-11 | 2,195,951 |
CUST00065 | United Retail | Dedicated | 15 | Electronics | Active | 2020-06-09 | 2,054,496 |
CUST00066 | Elite Foods | Dedicated | 15 | Automotive | Active | 2020-03-12 | 2,249,529 |
CUST00067 | Metro Supply Chain | Contract | 60 | Retail | Active | 2021-01-11 | 2,619,119 |
CUST00068 | Metro Manufacturing | Contract | 30 | Food/Beverage | Active | 2020-10-09 | 870,956 |
CUST00069 | Continental Manufacturing | Contract | 15 | Electronics | Active | 2021-06-18 | 4,885,593 |
CUST00070 | First Group | Spot | 60 | Automotive | Inactive | 2021-12-11 | 3,453,750 |
CUST00071 | Continental Supply Chain | Spot | 60 | Retail | Active | 2020-01-27 | 4,873,662 |
CUST00072 | Continental Distribution | Spot | 45 | Food/Beverage | Inactive | 2020-12-11 | 1,923,996 |
CUST00073 | Pacific Supply Chain | Dedicated | 15 | Electronics | Active | 2020-12-31 | 747,613 |
CUST00074 | First Industries | Contract | 60 | Food/Beverage | Active | 2021-08-17 | 2,823,714 |
CUST00075 | Elite Corp | Contract | 30 | General | Inactive | 2021-04-20 | 4,147,781 |
CUST00076 | Metro Wholesale | Spot | 60 | Electronics | Active | 2021-11-22 | 1,550,411 |
CUST00077 | Metro Group | Spot | 60 | Retail | Inactive | 2020-08-23 | 4,195,959 |
CUST00078 | Premier Wholesale | Spot | 45 | Retail | Inactive | 2020-01-09 | 4,933,788 |
CUST00079 | Pacific Logistics | Spot | 15 | Electronics | Active | 2020-10-10 | 899,971 |
CUST00080 | First Distribution | Spot | 60 | General | Inactive | 2020-06-08 | 2,619,881 |
CUST00081 | ABC Wholesale | Spot | 30 | Electronics | Active | 2021-03-06 | 413,495 |
CUST00082 | Global Logistics | Spot | 45 | Automotive | Inactive | 2020-06-25 | 4,934,218 |
CUST00083 | Metro Logistics | Contract | 60 | Retail | Inactive | 2020-01-19 | 3,300,640 |
CUST00084 | United Foods | Dedicated | 30 | Consumer Goods | Active | 2020-08-18 | 758,316 |
CUST00085 | Pacific Manufacturing | Dedicated | 15 | Food/Beverage | Active | 2021-06-21 | 569,113 |
CUST00086 | Premier Foods | Contract | 45 | Retail | Active | 2020-05-31 | 2,905,063 |
CUST00087 | Global Logistics | Contract | 60 | General | Inactive | 2021-06-24 | 3,018,650 |
CUST00088 | Continental Foods | Dedicated | 45 | Consumer Goods | Active | 2020-06-24 | 3,743,209 |
CUST00089 | United Group | Spot | 30 | Electronics | Active | 2021-01-10 | 3,594,037 |
CUST00090 | ABC Supply Chain | Dedicated | 15 | Retail | Active | 2021-02-04 | 1,111,167 |
CUST00091 | American Distribution | Contract | 15 | Automotive | Active | 2020-09-09 | 2,001,845 |
CUST00092 | Elite Group | Dedicated | 15 | Consumer Goods | Active | 2021-03-26 | 195,918 |
CUST00093 | United Group | Spot | 15 | General | Active | 2020-04-28 | 3,308,533 |
CUST00094 | National Retail | Contract | 60 | General | Active | 2020-06-13 | 554,058 |
CUST00095 | First Foods | Contract | 30 | Consumer Goods | Active | 2021-07-21 | 2,656,708 |
CUST00096 | Continental Logistics | Dedicated | 45 | Food/Beverage | Active | 2021-10-23 | 4,498,846 |
CUST00097 | National Wholesale | Contract | 60 | Retail | Active | 2020-07-07 | 445,461 |
CUST00098 | National Supply Chain | Dedicated | 45 | Electronics | Active | 2021-07-27 | 2,778,621 |
CUST00099 | First Logistics | Dedicated | 15 | General | Inactive | 2020-09-28 | 4,629,258 |
CUST00100 | ABC Foods | Contract | 30 | Automotive | Active | 2021-03-05 | 4,838,832 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
- Logistics Operations Database
- About this Dataset
- What's Inside
- Who This Is For
- Why This Dataset Exists
- Dataset Structure
- Key Features
- Use Case Examples
- Sample Questions to Explore
- Data Format
- Column Descriptions
- Known Limitations
- Competitive Advantages Over Similar Datasets
- Suggested Citation
- Acknowledgments
- Update Schedule
- Community Contributions
- Tags
- File Structure
- License
- What's Inside
Logistics Operations Database
About this Dataset
What's Inside
A complete operational database from a fictional Class 8 trucking company spanning three years. This isn't scraped web data or simplified tutorial content—it's a realistic simulation built from 12 years of real-world logistics experience, designed specifically for analysts transitioning into supply chain and transportation domains.
The dataset contains 85,000+ records across 14 interconnected tables covering everything from driver assignments and fuel purchases to maintenance schedules and delivery performance. Each table maintains proper foreign key relationships, making this ideal for practicing complex SQL queries, building data pipelines, or developing operational dashboards.
Who This Is For
SQL Learners: Master window functions, CTEs, and multi-table JOINs using realistic business scenarios rather than contrived examples.
Data Analysts: Build portfolio projects that demonstrate understanding of operational metrics: cost-per-mile analysis, fleet utilization optimization, driver performance scorecards.
Aspiring Supply Chain Analysts: Work with authentic logistics data patterns—seasonal freight volumes, equipment utilization rates, route profitability calculations—without NDA restrictions.
Data Science Students: Develop predictive models for maintenance scheduling, driver retention, or route optimization using time-series data with actual business context.
Career Changers: If you're moving from operations into analytics (like the dataset creator), this provides a bridge—your domain knowledge becomes a competitive advantage rather than a gap to explain.
Why This Dataset Exists
Most logistics datasets are either proprietary (unavailable) or overly simplified (unrealistic). This fills the gap: operational complexity without confidentiality concerns. The data reflects real industry patterns:
- Fuel prices track the 2022 diesel spike and 2023-2024 decline
- Driver turnover sits at 15% annually (industry standard)
- Equipment utilization averages 65% (typical for dry van operations)
- On-time delivery performance ranges 85-95% (realistic service levels)
- Maintenance intervals follow Class 8 PM schedules
Dataset Structure
Core Entities (Reference Tables):
- Drivers (150 records) - Demographics, employment history, CDL info
- Trucks (120 records) - Fleet specs, acquisition dates, status
- Trailers (180 records) - Equipment types, current assignments
- Customers (200 records) - Shipper accounts, contract terms, revenue potential
- Facilities (50 records) - Terminals and warehouses with geocoordinates
- Routes (60+ records) - City pairs with distances and rate structures
Operational Transactions:
- Loads (57,000+ records) - Shipment details, revenue, booking type
- Trips (57,000+ records) - Driver-truck assignments, actual performance
- Fuel Purchases (131,000+ records) - Transaction-level data with pricing
- Maintenance Records (6,500+ records) - Service history, costs, downtime
- Delivery Events (114,000+ records) - Pickup/delivery timestamps, detention
- Safety Incidents (114 records) - Accidents, violations, claims
Aggregated Analytics:
- Driver Monthly Metrics (5,400+ records) - Performance summaries
- Truck Utilization Metrics (3,800+ records) - Equipment efficiency
Key Features
Temporal Coverage: January 2022 through December 2024 (3 years)
Geographic Scope: National operations across 25+ major US cities
Realistic Patterns:
- Seasonal freight fluctuations (Q4 peaks)
- Historical fuel price accuracy
- Equipment lifecycle modeling
- Driver retention dynamics
- Service level variations
Data Quality:
- Complete foreign key integrity
- No orphaned records
- Intentional 2% null rate in driver/truck assignments (reflects reality)
- All timestamps properly sequenced
- Financial calculations verified
Use Case Examples
Business Intelligence: Create executive dashboards showing revenue per truck, cost per mile, driver efficiency rankings, maintenance spend by equipment age, and customer concentration risk.
Predictive Analytics: Build models forecasting equipment failures based on maintenance history, predict driver turnover using performance metrics, and estimate route profitability for new lanes.
Operations Optimization: Analyze route efficiency, identify underutilized assets, optimize maintenance scheduling, calculate ideal fleet size, and evaluate driver-to-truck ratios.
SQL Mastery: Practice window functions for running totals and rankings, write complex JOINs across 6+ tables, implement CTEs for hierarchical queries, and perform cohort analysis on driver retention.
Sample Questions to Explore
- Which routes generate the highest profit margin after fuel costs?
- How does driver tenure correlate with fuel efficiency and on-time performance?
- What's the optimal preventive maintenance interval to minimize the total cost of ownership?
- Which customers have the highest revenue-per-load and best payment terms?
- How do seasonal patterns affect equipment utilization and revenue?
- What safety incident patterns exist by driver experience level?
- Which city pairs have the most reliable on-time delivery performance?
- How does truck age impact maintenance costs and downtime?
Data Format
All tables are provided as CSV files with headers. Relationships documented in the included schema file. Compatible with:
- PostgreSQL, MySQL, SQL Server
- Python (pandas, SQLAlchemy)
- R (tidyverse, DBI)
- Tableau, Power BI, Looker
- Jupyter notebooks, R Markdown
Column Descriptions
See individual table documentation for complete field definitions. Key identifier patterns:
driver_idformat: DRV00001 through DRV00150truck_idformat: TRK00001 through TRK00120load_idformat: LOAD00000001 through LOAD00057000+- All date fields: ISO format (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)
- Currency: USD (dollars and cents)
- Distance: Miles
- Fuel: Gallons
Known Limitations
Not Included:
- Hours of Service (HOS) compliance tracking
- Weather impact modeling
- Customer payment histories
- Insurance claim details
- Detailed cargo manifests
- Electronic Logging Device (ELD) data
Simplified:
- Safety incidents reduced to basic claims data
- Maintenance descriptions generalized
- Customer contracts simplified to term length
- Route planning without traffic/construction
These omissions are intentional, adding unnecessary complexity without improving analytical value.
Competitive Advantages Over Similar Datasets
Compared to UCI/Kaggle logistics datasets:
- 10x more records
- Proper normalization (not flat files)
- Multi-year temporal depth
- Financial transactions included
Compared to synthetic data generators:
- Domain-specific realism
- Industry-standard metrics
- Authentic operational patterns
- Built by a practitioner, not an academic
Compared to proprietary datasets:
- Fully open (no NDA required)
- Unrestricted use
- Documented generation process
- Reproducible
Suggested Citation
If using in academic work or portfolio projects:
Yogape Rodriguez (2025).
Synthetic Logistics Operations Database (2022-2024).
Kaggle Dataset. https://www.kaggle.com/datasets/yogape/logistics-operations-database
Acknowledgments
Dataset generated using operational knowledge from 12 years in Class 8 trucking operations. Created to support career transitions from operations roles into data analytics positions.
Update Schedule
Current Version: 1.0.0
Planned Updates:
- v1.1.0: Add Hours of Service compliance table
- v1.2.0: Include weather impact data
- v2.0.0: Expand to 5-year history (2020-2024)
Community Contributions
Suggestions welcome for:
- Additional analytical scenarios
- Jupyter notebook examples
- SQL query templates
- Tableau/Power BI dashboards
- Data validation scripts
Tags
logistics transportation supply-chain sql-practice operations-research fleet-management business-intelligence time-series synthetic-data trucking freight analytics-education
File Structure
logistics_data/
├── drivers.csv (150 records)
├── trucks.csv (120 records)
├── trailers.csv (180 records)
├── customers.csv (200 records)
├── facilities.csv (50 records)
├── routes.csv (60 records)
├── loads.csv (57,000+ records)
├── trips.csv (57,000+ records)
├── fuel_purchases.csv (131,000+ records)
├── maintenance_records.csv (6,500+ records)
├── delivery_events.csv (114,000+ records)
├── safety_incidents.csv (114 records)
├── driver_monthly_metrics.csv (5,400+ records)
├── truck_utilization_metrics.csv (3,800+ records)
└── DATABASE_SCHEMA.txt (relationship documentation)
License
MIT License - Use freely for commercial, educational, or personal projects. Attribution appreciated but not required.
Questions? Comment or reach out via messages.
Found this useful? Upvote and share with others in logistics/supply chain analytics.
- Downloads last month
- 100