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 12 new columns ({'screen_time_before_sleep', 'anxiety_level', 'addiction_level', 'academic_performance', 'social_interaction_level', 'daily_social_media_hours', 'stress_level', 'platform_usage', 'sleep_hours', 'gender', 'physical_activity', 'depression_label'}) and 8 missing columns ({'job_satisfaction', 'relationship_satisfaction', 'attrition', 'employee_id', 'monthly_income', 'department', 'work_life_balance', 'years_at_company'}).
This happened while the csv dataset builder was generating data using
hf://datasets/vikramssheth/writersample/Teen_Mental_Health_Dataset.csv (at revision e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da), [/tmp/hf-datasets-cache/medium/datasets/75776901116470-config-parquet-and-info-vikramssheth-writersample-b96f0a63/hub/datasets--vikramssheth--writersample/snapshots/e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Employee_Attrition_Dataset.csv (origin=hf://datasets/vikramssheth/writersample@e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Employee_Attrition_Dataset.csv), /tmp/hf-datasets-cache/medium/datasets/75776901116470-config-parquet-and-info-vikramssheth-writersample-b96f0a63/hub/datasets--vikramssheth--writersample/snapshots/e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Teen_Mental_Health_Dataset.csv (origin=hf://datasets/vikramssheth/writersample@e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Teen_Mental_Health_Dataset.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
age: int64
gender: string
daily_social_media_hours: double
platform_usage: string
sleep_hours: double
screen_time_before_sleep: double
academic_performance: double
physical_activity: double
social_interaction_level: string
stress_level: int64
anxiety_level: int64
addiction_level: int64
depression_label: int64
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1950
to
{'employee_id': Value('int64'), 'age': Value('int64'), 'department': Value('string'), 'monthly_income': Value('int64'), 'job_satisfaction': Value('int64'), 'work_life_balance': Value('int64'), 'relationship_satisfaction': Value('int64'), 'years_at_company': Value('int64'), 'attrition': 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 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 12 new columns ({'screen_time_before_sleep', 'anxiety_level', 'addiction_level', 'academic_performance', 'social_interaction_level', 'daily_social_media_hours', 'stress_level', 'platform_usage', 'sleep_hours', 'gender', 'physical_activity', 'depression_label'}) and 8 missing columns ({'job_satisfaction', 'relationship_satisfaction', 'attrition', 'employee_id', 'monthly_income', 'department', 'work_life_balance', 'years_at_company'}).
This happened while the csv dataset builder was generating data using
hf://datasets/vikramssheth/writersample/Teen_Mental_Health_Dataset.csv (at revision e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da), [/tmp/hf-datasets-cache/medium/datasets/75776901116470-config-parquet-and-info-vikramssheth-writersample-b96f0a63/hub/datasets--vikramssheth--writersample/snapshots/e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Employee_Attrition_Dataset.csv (origin=hf://datasets/vikramssheth/writersample@e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Employee_Attrition_Dataset.csv), /tmp/hf-datasets-cache/medium/datasets/75776901116470-config-parquet-and-info-vikramssheth-writersample-b96f0a63/hub/datasets--vikramssheth--writersample/snapshots/e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Teen_Mental_Health_Dataset.csv (origin=hf://datasets/vikramssheth/writersample@e4005ec3e233ff03cdc0d8dbd74d6b54ce44d7da/Teen_Mental_Health_Dataset.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.
employee_id int64 | age int64 | department string | monthly_income int64 | job_satisfaction int64 | work_life_balance int64 | relationship_satisfaction int64 | years_at_company int64 | attrition string |
|---|---|---|---|---|---|---|---|---|
1 | 58 | IT | 15,488 | 3 | 1 | 4 | 15 | No |
2 | 48 | Sales | 13,079 | 1 | 2 | 1 | 6 | No |
3 | 34 | Marketing | 13,744 | 2 | 3 | 4 | 24 | No |
4 | 27 | Marketing | 6,809 | 5 | 3 | 3 | 10 | No |
5 | 40 | Marketing | 10,206 | 5 | 2 | 1 | 29 | No |
6 | 58 | Finance | 16,746 | 2 | 4 | 2 | 15 | No |
7 | 38 | HR | 18,995 | 5 | 4 | 1 | 29 | No |
8 | 42 | Marketing | 19,035 | 2 | 3 | 2 | 4 | No |
9 | 30 | IT | 14,671 | 1 | 4 | 4 | 18 | No |
10 | 30 | Marketing | 16,210 | 1 | 3 | 3 | 18 | No |
11 | 43 | Finance | 8,197 | 1 | 3 | 1 | 25 | Yes |
12 | 55 | IT | 18,553 | 2 | 2 | 2 | 17 | No |
13 | 59 | Finance | 10,452 | 2 | 4 | 4 | 12 | No |
14 | 43 | IT | 11,718 | 4 | 2 | 3 | 7 | No |
15 | 22 | Sales | 17,859 | 5 | 3 | 3 | 16 | No |
16 | 41 | HR | 5,172 | 5 | 3 | 3 | 11 | No |
17 | 21 | HR | 16,158 | 4 | 3 | 4 | 14 | No |
18 | 43 | Finance | 19,663 | 4 | 1 | 4 | 3 | No |
19 | 49 | HR | 14,085 | 1 | 1 | 4 | 19 | No |
20 | 57 | Finance | 6,981 | 4 | 1 | 3 | 18 | No |
21 | 21 | Finance | 8,247 | 2 | 2 | 1 | 10 | No |
22 | 40 | Finance | 13,553 | 3 | 3 | 2 | 6 | No |
23 | 52 | HR | 9,135 | 2 | 4 | 4 | 13 | No |
24 | 31 | Finance | 8,573 | 4 | 2 | 1 | 10 | Yes |
25 | 41 | HR | 16,731 | 5 | 2 | 2 | 18 | No |
26 | 44 | Finance | 10,189 | 2 | 2 | 3 | 26 | No |
27 | 46 | Marketing | 17,541 | 5 | 4 | 1 | 20 | Yes |
28 | 47 | Finance | 13,878 | 2 | 3 | 3 | 26 | Yes |
29 | 35 | IT | 14,087 | 5 | 1 | 2 | 16 | No |
30 | 34 | Finance | 16,667 | 2 | 3 | 4 | 25 | No |
31 | 22 | Sales | 5,776 | 5 | 3 | 3 | 25 | No |
32 | 56 | Finance | 12,311 | 3 | 2 | 1 | 6 | Yes |
33 | 26 | IT | 10,697 | 1 | 2 | 4 | 13 | No |
34 | 40 | IT | 17,629 | 2 | 2 | 1 | 4 | No |
35 | 28 | HR | 11,386 | 3 | 1 | 2 | 23 | No |
36 | 58 | Marketing | 11,044 | 1 | 1 | 2 | 14 | No |
37 | 37 | Finance | 12,615 | 2 | 1 | 4 | 1 | Yes |
38 | 23 | HR | 18,034 | 3 | 3 | 1 | 28 | No |
39 | 44 | Marketing | 8,060 | 3 | 2 | 1 | 20 | Yes |
40 | 33 | Finance | 13,900 | 3 | 4 | 1 | 5 | No |
41 | 28 | Sales | 8,581 | 4 | 3 | 1 | 8 | No |
42 | 45 | Finance | 5,014 | 5 | 1 | 2 | 12 | No |
43 | 21 | IT | 15,997 | 1 | 4 | 1 | 2 | No |
44 | 39 | IT | 13,635 | 5 | 4 | 2 | 12 | No |
45 | 47 | Sales | 16,648 | 5 | 2 | 1 | 5 | No |
46 | 26 | HR | 10,148 | 5 | 4 | 1 | 22 | No |
47 | 27 | Marketing | 17,022 | 3 | 1 | 3 | 5 | No |
48 | 54 | Finance | 8,919 | 5 | 2 | 3 | 13 | No |
49 | 33 | IT | 18,886 | 4 | 4 | 1 | 9 | Yes |
50 | 36 | HR | 9,638 | 2 | 2 | 2 | 10 | Yes |
51 | 55 | Sales | 7,651 | 3 | 4 | 1 | 1 | No |
52 | 59 | IT | 3,609 | 1 | 3 | 3 | 3 | Yes |
53 | 23 | Sales | 10,940 | 2 | 3 | 1 | 18 | No |
54 | 21 | Finance | 13,348 | 2 | 1 | 3 | 12 | Yes |
55 | 25 | Marketing | 6,866 | 2 | 3 | 1 | 29 | No |
56 | 23 | IT | 19,755 | 5 | 3 | 4 | 3 | No |
57 | 48 | IT | 19,999 | 5 | 3 | 1 | 26 | Yes |
58 | 37 | Finance | 5,253 | 3 | 4 | 2 | 25 | No |
59 | 45 | HR | 7,942 | 5 | 4 | 3 | 29 | No |
60 | 53 | Marketing | 15,330 | 5 | 2 | 4 | 9 | No |
61 | 29 | IT | 3,864 | 5 | 4 | 3 | 26 | No |
62 | 55 | Marketing | 4,268 | 3 | 3 | 3 | 2 | No |
63 | 33 | IT | 10,454 | 3 | 4 | 2 | 3 | Yes |
64 | 50 | Marketing | 16,666 | 4 | 1 | 1 | 14 | Yes |
65 | 34 | Sales | 15,370 | 4 | 2 | 2 | 4 | Yes |
66 | 27 | IT | 8,229 | 4 | 2 | 1 | 25 | No |
67 | 33 | Marketing | 19,309 | 4 | 4 | 4 | 19 | No |
68 | 42 | HR | 7,054 | 2 | 3 | 2 | 13 | Yes |
69 | 59 | Sales | 3,935 | 2 | 2 | 2 | 7 | No |
70 | 40 | Sales | 15,172 | 4 | 1 | 3 | 12 | No |
71 | 35 | HR | 13,530 | 4 | 1 | 2 | 3 | No |
72 | 37 | Marketing | 18,560 | 1 | 2 | 1 | 23 | No |
73 | 43 | Finance | 19,156 | 2 | 3 | 2 | 23 | No |
74 | 45 | HR | 19,709 | 1 | 3 | 2 | 9 | No |
75 | 44 | Marketing | 12,726 | 1 | 4 | 4 | 2 | No |
76 | 48 | HR | 10,774 | 5 | 4 | 1 | 29 | No |
77 | 34 | HR | 4,985 | 3 | 2 | 3 | 22 | No |
78 | 20 | IT | 17,252 | 2 | 4 | 1 | 9 | No |
79 | 44 | Marketing | 7,603 | 4 | 4 | 4 | 12 | No |
80 | 26 | Finance | 18,960 | 4 | 4 | 1 | 12 | No |
81 | 28 | IT | 12,462 | 3 | 1 | 1 | 15 | No |
82 | 43 | HR | 17,166 | 2 | 4 | 2 | 2 | No |
83 | 20 | HR | 10,754 | 4 | 2 | 2 | 18 | No |
84 | 27 | HR | 17,246 | 4 | 3 | 1 | 13 | No |
85 | 43 | Marketing | 7,078 | 5 | 4 | 1 | 14 | No |
86 | 30 | Marketing | 15,853 | 1 | 3 | 3 | 5 | No |
87 | 36 | IT | 7,042 | 4 | 4 | 4 | 26 | No |
88 | 27 | Finance | 19,284 | 2 | 2 | 2 | 10 | No |
89 | 54 | IT | 17,389 | 3 | 1 | 2 | 12 | No |
90 | 54 | Sales | 5,575 | 5 | 2 | 2 | 10 | No |
91 | 52 | HR | 9,754 | 2 | 1 | 2 | 24 | No |
92 | 24 | HR | 4,986 | 5 | 4 | 1 | 11 | No |
93 | 58 | HR | 18,470 | 1 | 4 | 1 | 25 | Yes |
94 | 47 | IT | 8,968 | 4 | 1 | 3 | 2 | No |
95 | 26 | IT | 10,493 | 2 | 2 | 2 | 5 | Yes |
96 | 28 | HR | 7,103 | 3 | 2 | 2 | 7 | No |
97 | 27 | IT | 5,076 | 1 | 1 | 1 | 6 | No |
98 | 31 | Marketing | 5,994 | 1 | 4 | 3 | 22 | No |
99 | 53 | Marketing | 6,744 | 5 | 1 | 1 | 23 | Yes |
100 | 52 | IT | 17,466 | 1 | 4 | 2 | 3 | No |
End of preview.
No dataset card yet
- Downloads last month
- 111