Dataset Preview
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 13 new columns ({'BirthDate', 'Gender', 'TotalChildren', 'MaritalStatus', 'EducationLevel', 'AnnualIncome', 'HomeOwner', 'EmailAddress', 'LastName', 'Occupation', 'FirstName', 'CustomerKey', 'Prefix'}) and 1 missing columns ({'Date'}).
This happened while the csv dataset builder was generating data using
hf://datasets/darren0301/schema-action/datasets/adventurework/customers.csv (at revision 32119e4a3e0ba2a414490fe898cd8ae527db1d5e)
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 1831, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
CustomerKey: int64
Prefix: string
FirstName: string
LastName: string
BirthDate: string
MaritalStatus: string
Gender: string
EmailAddress: string
AnnualIncome: string
TotalChildren: int64
EducationLevel: string
Occupation: string
HomeOwner: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1821
to
{'Date': Value('string')}
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 1455, 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 1054, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, 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 1833, 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 13 new columns ({'BirthDate', 'Gender', 'TotalChildren', 'MaritalStatus', 'EducationLevel', 'AnnualIncome', 'HomeOwner', 'EmailAddress', 'LastName', 'Occupation', 'FirstName', 'CustomerKey', 'Prefix'}) and 1 missing columns ({'Date'}).
This happened while the csv dataset builder was generating data using
hf://datasets/darren0301/schema-action/datasets/adventurework/customers.csv (at revision 32119e4a3e0ba2a414490fe898cd8ae527db1d5e)
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.
Date string |
|---|
01-Jan-15 |
02-Jan-15 |
03-Jan-15 |
04-Jan-15 |
05-Jan-15 |
06-Jan-15 |
07-Jan-15 |
08-Jan-15 |
09-Jan-15 |
10-Jan-15 |
11-Jan-15 |
12-Jan-15 |
13-Jan-15 |
14-Jan-15 |
15-Jan-15 |
16-Jan-15 |
17-Jan-15 |
18-Jan-15 |
19-Jan-15 |
20-Jan-15 |
21-Jan-15 |
22-Jan-15 |
23-Jan-15 |
24-Jan-15 |
25-Jan-15 |
26-Jan-15 |
27-Jan-15 |
28-Jan-15 |
29-Jan-15 |
30-Jan-15 |
31-Jan-15 |
01-Feb-15 |
02-Feb-15 |
03-Feb-15 |
04-Feb-15 |
05-Feb-15 |
06-Feb-15 |
07-Feb-15 |
08-Feb-15 |
09-Feb-15 |
10-Feb-15 |
11-Feb-15 |
12-Feb-15 |
13-Feb-15 |
14-Feb-15 |
15-Feb-15 |
16-Feb-15 |
17-Feb-15 |
18-Feb-15 |
19-Feb-15 |
20-Feb-15 |
21-Feb-15 |
22-Feb-15 |
23-Feb-15 |
24-Feb-15 |
25-Feb-15 |
26-Feb-15 |
27-Feb-15 |
28-Feb-15 |
01-Mar-15 |
02-Mar-15 |
03-Mar-15 |
04-Mar-15 |
05-Mar-15 |
06-Mar-15 |
07-Mar-15 |
08-Mar-15 |
09-Mar-15 |
10-Mar-15 |
11-Mar-15 |
12-Mar-15 |
13-Mar-15 |
14-Mar-15 |
15-Mar-15 |
16-Mar-15 |
17-Mar-15 |
18-Mar-15 |
19-Mar-15 |
20-Mar-15 |
21-Mar-15 |
22-Mar-15 |
23-Mar-15 |
24-Mar-15 |
25-Mar-15 |
26-Mar-15 |
27-Mar-15 |
28-Mar-15 |
29-Mar-15 |
30-Mar-15 |
31-Mar-15 |
01-Apr-15 |
02-Apr-15 |
03-Apr-15 |
04-Apr-15 |
05-Apr-15 |
06-Apr-15 |
07-Apr-15 |
08-Apr-15 |
09-Apr-15 |
10-Apr-15 |
End of preview.
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)
Schema-Action Querying Dataset
License: apache-2.0
Language: English
Tags: text-to-sql, table-qa, multi-domain, structured-data, small-models
Schema-Action π
Query Excel/CSV files with natural language using only 3B models
π― What is this?
First multi-table Text-to-Action system powered by small language models (3B parameters). Query structured data with 90%+ accuracyβno GPT-4, no database setup needed!
π Try It Now
Select a dataset and ask questions in natural language:
Dataset 1: Adventure Works (E-commerce)
- "How many customers are homeowners?"
- "Who are the top 5 customers by annual income?"
- "Is there an order from customer 11000 for product 344?"
Dataset 2: Travel Booking
- "What is the age of Wilma Mcinnis?"
- "Which 10 flights have the shortest duration?"
- "How many flights were 'economic' class?"
π‘ Key Features
- β 3B model (Llama 3.2 3B) achieves 90%+ accuracy
- β Auto-JOIN across multiple tables
- β Domain-agnostic: Works on any tabular data
- β Fast: 3-5s per query
π Links
π οΈ How to Use Your Own Data
- Clone the GitHub repo
- Create
metadata.jsonandjoin_config.jsonfor your CSV files - Run locally:
python schema_action.py \
--data_directory ./your_data \
--metadata_path ./metadata.json \
--join_config_path ./join_config.json
Citation
If you use this dataset in your work, please cite the original sources. You can also cite this dataset compilation as:
@dataset{Darrencxl_Action_Scema_2025,
author = {Darren Chai Xin Lun},
title = {Action-Scema},
year = {2025},
publisher = {Hugging Face},
version = {1.0.0},
url = {https://huggingface.co/datasets/darren0301/schema-action}
}
- Downloads last month
- 7