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 2 new columns ({'employee_id', 'is_promoted'})
This happened while the csv dataset builder was generating data using
hf://datasets/Andrew2505/Employee-Promotion/employee_promotion_final.csv (at revision d34931c75b38d9cbdb147ed1085b582dc7a07d4d), [/tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtest.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtest.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtrain.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtrain.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xval.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xval.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/employee_promotion_final.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/employee_promotion_final.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytest.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytest.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytrain.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytrain.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/yval.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/yval.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 1893, 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 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
employee_id: int64
department: string
region: string
education: string
gender: string
recruitment_channel: string
no_of_trainings: int64
age: int64
previous_year_rating: double
length_of_service: int64
awards_won: int64
avg_training_score: double
is_promoted: int64
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1857
to
{'no_of_trainings': Value('int64'), 'age': Value('int64'), 'previous_year_rating': Value('float64'), 'length_of_service': Value('int64'), 'awards_won': Value('int64'), 'avg_training_score': Value('float64'), 'department': Value('string'), 'region': Value('string'), 'gender': Value('string'), 'recruitment_channel': Value('string'), 'education': 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 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 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, 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 1895, 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 2 new columns ({'employee_id', 'is_promoted'})
This happened while the csv dataset builder was generating data using
hf://datasets/Andrew2505/Employee-Promotion/employee_promotion_final.csv (at revision d34931c75b38d9cbdb147ed1085b582dc7a07d4d), [/tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtest.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtest.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtrain.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xtrain.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xval.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/Xval.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/employee_promotion_final.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/employee_promotion_final.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytest.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytest.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytrain.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/ytrain.csv), /tmp/hf-datasets-cache/medium/datasets/42295292295997-config-parquet-and-info-Andrew2505-Employee-Promo-3dceb416/hub/datasets--Andrew2505--Employee-Promotion/snapshots/d34931c75b38d9cbdb147ed1085b582dc7a07d4d/yval.csv (origin=hf://datasets/Andrew2505/Employee-Promotion@d34931c75b38d9cbdb147ed1085b582dc7a07d4d/yval.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.
no_of_trainings int64 | age int64 | previous_year_rating float64 | length_of_service int64 | awards_won int64 | avg_training_score float64 | department string | region string | gender string | recruitment_channel string | education string |
|---|---|---|---|---|---|---|---|---|---|---|
1 | 45 | 3 | 3 | 0 | 54 | Sales & Marketing | region_22 | m | other | Bachelor's |
1 | 34 | 3 | 6 | 0 | 58 | Operations | region_29 | m | other | Bachelor's |
2 | 29 | 3 | 2 | 0 | 48 | Sales & Marketing | region_2 | f | sourcing | Bachelor's |
1 | 39 | 3 | 7 | 0 | 50 | Sales & Marketing | region_2 | m | other | Bachelor's |
1 | 49 | 5 | 9 | 0 | 95 | Operations | region_7 | m | sourcing | Master's & above |
1 | 41 | 5 | 9 | 0 | 59 | Operations | region_7 | m | other | Bachelor's |
1 | 36 | 3 | 9 | 0 | 51 | Sales & Marketing | region_4 | m | other | Bachelor's |
1 | 38 | 5 | 5 | 0 | 49 | HR | region_2 | f | sourcing | Master's & above |
1 | 42 | 1 | 4 | 0 | 80 | Technology | region_26 | m | sourcing | Master's & above |
1 | 41 | 1 | 13 | 0 | 80 | Technology | region_15 | m | other | Bachelor's |
1 | 34 | 4 | 5 | 0 | 53 | Sales & Marketing | region_29 | m | sourcing | Master's & above |
1 | 32 | 4 | 8 | 0 | 48 | Sales & Marketing | region_28 | f | other | Bachelor's |
1 | 29 | 4 | 4 | 0 | 82 | Analytics | region_22 | m | referred | Bachelor's |
1 | 35 | 3 | 5 | 0 | 52 | Sales & Marketing | region_1 | m | other | Master's & above |
1 | 44 | 2 | 4 | 0 | 71 | Procurement | region_16 | f | sourcing | Bachelor's |
1 | 30 | 5 | 3 | 0 | 59 | Finance | region_28 | m | sourcing | Bachelor's |
1 | 29 | 2 | 2 | 0 | 47 | Sales & Marketing | region_22 | f | sourcing | Bachelor's |
1 | 32 | 3 | 7 | 0 | 54 | HR | region_22 | f | other | Bachelor's |
1 | 36 | 1 | 5 | 0 | 56 | Operations | region_13 | m | other | Bachelor's |
1 | 46 | 4 | 9 | 0 | 47 | Sales & Marketing | region_16 | m | sourcing | Bachelor's |
2 | 30 | 1 | 5 | 0 | 82 | Analytics | region_27 | m | sourcing | Bachelor's |
1 | 29 | 3 | 8 | 0 | 66 | Operations | region_17 | m | sourcing | Bachelor's |
1 | 26 | 3 | 5 | 0 | 60 | Operations | region_22 | f | sourcing | Bachelor's |
1 | 46 | 3 | 4 | 0 | 52 | Sales & Marketing | region_26 | m | other | Bachelor's |
1 | 36 | 4 | 3 | 0 | 46 | Sales & Marketing | region_7 | f | other | Bachelor's |
1 | 36 | 4 | 10 | 0 | 49 | Sales & Marketing | region_2 | m | other | Master's & above |
1 | 27 | 4 | 3 | 0 | 59 | Legal | region_22 | m | sourcing | Bachelor's |
1 | 31 | 5 | 3 | 0 | 58 | Legal | region_22 | m | referred | Bachelor's |
1 | 44 | 4 | 5 | 0 | 59 | Operations | region_15 | m | sourcing | Master's & above |
1 | 40 | 1 | 11 | 0 | 49 | Sales & Marketing | region_8 | m | other | Bachelor's |
2 | 32 | 3 | 7 | 0 | 71 | Procurement | region_22 | m | other | Master's & above |
1 | 35 | 1 | 7 | 0 | 57 | Operations | region_15 | m | sourcing | Bachelor's |
1 | 36 | 1 | 4 | 0 | 48 | Sales & Marketing | region_15 | m | sourcing | Master's & above |
1 | 50 | 1 | 6 | 0 | 55 | Sales & Marketing | region_7 | f | other | Master's & above |
1 | 41 | 3 | 12 | 0 | 78 | Technology | region_13 | f | sourcing | Bachelor's |
2 | 29 | 4 | 5 | 0 | 82 | Analytics | region_32 | m | other | Bachelor's |
1 | 39 | 5 | 7 | 0 | 57 | Operations | region_32 | m | sourcing | Bachelor's |
1 | 29 | 4 | 2 | 0 | 49 | Sales & Marketing | region_13 | f | other | Bachelor's |
1 | 31 | 4 | 6 | 0 | 48 | Sales & Marketing | region_2 | f | sourcing | Master's & above |
1 | 60 | 3 | 21 | 0 | 99 | Procurement | region_2 | f | other | Bachelor's |
2 | 31 | 5 | 7 | 0 | 85 | Analytics | region_34 | m | other | Bachelor's |
1 | 38 | 4 | 4 | 0 | 60 | Operations | region_31 | m | other | Bachelor's |
1 | 32 | 4 | 4 | 0 | 90 | Operations | region_6 | f | other | Bachelor's |
1 | 50 | 3 | 19 | 0 | 84 | Analytics | region_2 | m | other | Bachelor's |
1 | 43 | 1 | 4 | 0 | 46 | Sales & Marketing | region_15 | m | other | Bachelor's |
2 | 36 | 5 | 4 | 0 | 41 | Sales & Marketing | region_13 | f | sourcing | Bachelor's |
1 | 30 | 3 | 2 | 0 | 79 | Technology | region_2 | m | other | Master's & above |
1 | 42 | 3 | 5 | 0 | 54 | Sales & Marketing | region_21 | m | other | Bachelor's |
1 | 32 | 5 | 7 | 0 | 52 | Sales & Marketing | region_28 | m | sourcing | Master's & above |
1 | 34 | 5 | 3 | 0 | 58 | Operations | region_13 | f | other | Master's & above |
3 | 27 | 5 | 3 | 0 | 52 | Sales & Marketing | region_22 | m | other | Bachelor's |
1 | 47 | 5 | 9 | 0 | 79 | Technology | region_7 | m | referred | Master's & above |
3 | 25 | 1 | 3 | 0 | 47 | Sales & Marketing | region_24 | m | other | Bachelor's |
3 | 54 | 3 | 25 | 0 | 70 | Procurement | region_2 | m | sourcing | Bachelor's |
1 | 38 | 1 | 5 | 0 | 66 | Operations | region_2 | f | sourcing | Bachelor's |
1 | 33 | 3 | 6 | 1 | 49 | Sales & Marketing | region_29 | m | other | Bachelor's |
1 | 32 | 2 | 6 | 0 | 47 | Sales & Marketing | region_11 | m | other | Bachelor's |
1 | 20 | 3 | 2 | 0 | 51 | Sales & Marketing | region_13 | m | other | Bachelor's |
1 | 47 | 3 | 4 | 0 | 51 | HR | region_2 | m | other | Bachelor's |
2 | 32 | 5 | 3 | 0 | 83 | Analytics | region_25 | m | sourcing | Bachelor's |
2 | 37 | 1 | 7 | 0 | 50 | Sales & Marketing | region_13 | m | other | Master's & above |
1 | 24 | 4 | 2 | 0 | 73 | Procurement | region_2 | f | sourcing | Bachelor's |
1 | 24 | 4 | 2 | 0 | 63 | Operations | region_11 | m | other | Bachelor's |
1 | 40 | 3 | 2 | 0 | 57 | Operations | region_2 | f | other | Master's & above |
1 | 34 | 3 | 8 | 0 | 84 | Technology | region_5 | f | sourcing | Master's & above |
2 | 46 | 3 | 3 | 0 | 51 | Sales & Marketing | region_13 | m | sourcing | Bachelor's |
2 | 46 | 2 | 12 | 0 | 48 | Sales & Marketing | region_2 | m | sourcing | Master's & above |
1 | 29 | 5 | 6 | 0 | 90 | Finance | region_7 | f | sourcing | Bachelor's |
1 | 29 | 3 | 2 | 0 | 50 | Sales & Marketing | region_7 | m | sourcing | Bachelor's |
1 | 27 | 2 | 3 | 0 | 69 | Procurement | region_14 | f | sourcing | Bachelor's |
1 | 37 | 2 | 6 | 0 | 50 | Sales & Marketing | region_31 | m | sourcing | Master's & above |
1 | 27 | 4 | 5 | 0 | 59 | Operations | region_31 | f | other | Bachelor's |
3 | 30 | 1 | 5 | 0 | 67 | Procurement | region_15 | f | sourcing | Bachelor's |
1 | 32 | 2 | 5 | 0 | 85 | Analytics | region_22 | m | sourcing | Master's & above |
2 | 26 | 4 | 4 | 0 | 49 | Sales & Marketing | region_22 | m | other | Bachelor's |
1 | 46 | 3 | 2 | 0 | 59 | Operations | region_4 | m | other | Bachelor's |
1 | 51 | 3 | 15 | 0 | 79 | Technology | region_22 | m | sourcing | Master's & above |
1 | 38 | 2 | 5 | 0 | 59 | Operations | region_29 | f | other | Bachelor's |
1 | 42 | 3 | 2 | 0 | 69 | Procurement | region_2 | m | other | Master's & above |
1 | 38 | 3 | 3 | 0 | 58 | Operations | region_2 | m | other | Master's & above |
1 | 26 | 3 | 2 | 0 | 49 | Sales & Marketing | region_7 | m | other | Bachelor's |
1 | 30 | 2 | 3 | 0 | 87 | Analytics | region_25 | m | other | Bachelor's |
1 | 34 | 5 | 5 | 0 | 49 | HR | region_22 | f | other | Master's & above |
1 | 44 | 4 | 7 | 0 | 57 | Operations | region_8 | m | sourcing | Master's & above |
2 | 53 | 3 | 13 | 0 | 82 | Technology | region_33 | m | other | Bachelor's |
2 | 34 | 2 | 8 | 0 | 53 | Sales & Marketing | region_24 | m | sourcing | Bachelor's |
1 | 45 | 3 | 6 | 0 | 62 | Operations | region_27 | m | other | Bachelor's |
1 | 50 | 4 | 2 | 0 | 75 | Technology | region_7 | m | sourcing | Master's & above |
1 | 46 | 2 | 12 | 0 | 55 | Operations | region_31 | m | other | Bachelor's |
1 | 30 | 3 | 7 | 0 | 59 | Finance | region_22 | m | other | Bachelor's |
2 | 35 | 3 | 7 | 0 | 56 | Sales & Marketing | region_2 | m | other | Master's & above |
1 | 41 | 4 | 4 | 0 | 77 | Technology | region_2 | m | other | Master's & above |
1 | 35 | 2 | 4 | 0 | 64 | Procurement | region_23 | f | other | Master's & above |
1 | 31 | 1 | 5 | 0 | 62 | Operations | region_2 | f | other | Bachelor's |
1 | 43 | 3 | 3 | 0 | 48 | Sales & Marketing | region_31 | m | sourcing | Bachelor's |
1 | 35 | 4 | 7 | 0 | 44 | Sales & Marketing | region_26 | m | other | Master's & above |
1 | 29 | 5 | 4 | 0 | 83 | Technology | region_2 | f | other | Bachelor's |
1 | 33 | 5 | 7 | 0 | 81 | Technology | region_7 | f | sourcing | Master's & above |
1 | 34 | 5 | 8 | 0 | 55 | Operations | region_2 | m | other | Master's & above |
1 | 36 | 3 | 9 | 0 | 81 | Technology | region_2 | f | sourcing | Bachelor's |
End of preview.
No dataset card yet
- Downloads last month
- 10