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 3 new columns ({'Region', 'SalesID', 'MonthlySales'}) and 4 missing columns ({'PerformanceRating', 'Department', 'EmployeeID', 'BaseSalary'}).

This happened while the csv dataset builder was generating data using

hf://datasets/asmarikabdar/employees/sales.csv (at revision 3145a51662c77ae1be572ed9a60aeafba0e297a5)

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 "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              SalesID: string
              Name: string
              Region: string
              MonthlySales: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 719
              to
              {'EmployeeID': Value('string'), 'Name': Value('string'), 'Department': Value('string'), 'BaseSalary': Value('int64'), 'PerformanceRating': 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 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 "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/.venv/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 3 new columns ({'Region', 'SalesID', 'MonthlySales'}) and 4 missing columns ({'PerformanceRating', 'Department', 'EmployeeID', 'BaseSalary'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/asmarikabdar/employees/sales.csv (at revision 3145a51662c77ae1be572ed9a60aeafba0e297a5)
              
              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.

EmployeeID
string
Name
string
Department
string
BaseSalary
int64
PerformanceRating
float64
E001
John Smith
Sales
50,000
4.2
E002
Alice Brown
Marketing
47,000
3.8
E003
David Johnson
Finance
52,000
4.6
E004
Sarah Lee
Engineering
60,000
4.9
E005
Michael Clark
HR
45,000
3.5
E006
Linda Davis
Engineering
58,000
4
E007
James Miller
Finance
49,000
3.7
E008
Patricia Wilson
Sales
51,000
4.3
E009
Robert Taylor
Marketing
46,000
3.2
E010
Barbara Moore
HR
47,000
4.1
null
Emma Johnson
null
null
null
null
Daniel Brown
null
null
null
null
Sophia Miller
null
null
null
null
Michael Wilson
null
null
null
null
Olivia Davis
null
null
null
null
Liam Anderson
null
null
null
null
Ava Thompson
null
null
null
null
Noah Garcia
null
null
null
null
Isabella Martinez
null
null
null
null
James Taylor
null
null
null

No dataset card yet

Downloads last month
17