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 4 new columns ({'Store_Establishment_Year', 'Store_Id', 'Product_Id', 'Product_Store_Sales_Total'}) and 1 missing columns ({'Store_Age'}).

This happened while the csv dataset builder was generating data using

hf://datasets/vijayendras/superkart-sales-data/superkart.csv (at revision 09cb9347506a0241b12588496374434345213966), [/tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/Xtest.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/Xtest.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/Xtrain.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/Xtrain.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/superkart.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/superkart.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/ytest.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/ytest.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/ytrain.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/ytrain.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 1887, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 675, 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
              Product_Id: string
              Product_Weight: double
              Product_Sugar_Content: string
              Product_Allocated_Area: double
              Product_Type: string
              Product_MRP: double
              Store_Id: string
              Store_Establishment_Year: int64
              Store_Size: string
              Store_Location_City_Type: string
              Store_Type: string
              Product_Store_Sales_Total: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1845
              to
              {'Product_Weight': Value('float64'), 'Product_Allocated_Area': Value('float64'), 'Product_MRP': Value('float64'), 'Store_Age': Value('int64'), 'Product_Sugar_Content': Value('string'), 'Product_Type': Value('string'), 'Store_Size': Value('string'), 'Store_Location_City_Type': Value('string'), 'Store_Type': 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 1736, 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 1889, 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 4 new columns ({'Store_Establishment_Year', 'Store_Id', 'Product_Id', 'Product_Store_Sales_Total'}) and 1 missing columns ({'Store_Age'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/vijayendras/superkart-sales-data/superkart.csv (at revision 09cb9347506a0241b12588496374434345213966), [/tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/Xtest.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/Xtest.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/Xtrain.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/Xtrain.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/superkart.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/superkart.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/ytest.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/ytest.csv), /tmp/hf-datasets-cache/medium/datasets/83324242693471-config-parquet-and-info-vijayendras-superkart-sal-cf67a68c/hub/datasets--vijayendras--superkart-sales-data/snapshots/09cb9347506a0241b12588496374434345213966/ytrain.csv (origin=hf://datasets/vijayendras/superkart-sales-data@09cb9347506a0241b12588496374434345213966/ytrain.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.

Product_Weight
float64
Product_Allocated_Area
float64
Product_MRP
float64
Store_Age
int64
Product_Sugar_Content
string
Product_Type
string
Store_Size
string
Store_Location_City_Type
string
Store_Type
string
12.53
0.066
145.62
17
Regular
Snack Foods
Medium
Tier 2
Supermarket Type2
13.29
0.086
135.99
17
Low Sugar
Canned
Medium
Tier 2
Supermarket Type2
9.99
0.09
125.79
39
Regular
Fruits and Vegetables
High
Tier 2
Supermarket Type1
10.72
0.049
92.94
28
No Sugar
Health and Hygiene
Small
Tier 3
Food Mart
15.6
0.121
176.07
39
Low Sugar
Soft Drinks
High
Tier 2
Supermarket Type1
11.87
0.1
130.28
17
Low Sugar
Baking Goods
Medium
Tier 2
Supermarket Type2
11.13
0.052
135.49
17
Low Sugar
Dairy
Medium
Tier 2
Supermarket Type2
14.02
0.09
118.48
17
Low Sugar
Soft Drinks
Medium
Tier 2
Supermarket Type2
11.42
0.018
147.95
17
No Sugar
Household
Medium
Tier 2
Supermarket Type2
9.55
0.043
88.28
28
Low Sugar
Soft Drinks
Small
Tier 3
Food Mart
14.44
0.097
218.42
27
No Sugar
Household
Medium
Tier 1
Departmental Store
10.95
0.073
145.75
17
Low Sugar
Starchy Foods
Medium
Tier 2
Supermarket Type2
10.62
0.107
132.73
17
Low Sugar
Snack Foods
Medium
Tier 2
Supermarket Type2
9.45
0.035
129.31
39
No Sugar
Household
High
Tier 2
Supermarket Type1
12.76
0.16
160.7
17
Low Sugar
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
12.94
0.027
120.3
17
Low Sugar
Soft Drinks
Medium
Tier 2
Supermarket Type2
8.97
0.02
118.77
28
Low Sugar
Snack Foods
Small
Tier 3
Food Mart
11.56
0.086
141.52
17
Low Sugar
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
17.13
0.147
191.14
27
Low Sugar
Fruits and Vegetables
Medium
Tier 1
Departmental Store
13.2
0.133
119.63
17
Low Sugar
Hard Drinks
Medium
Tier 2
Supermarket Type2
14.44
0.019
141.72
17
Regular
Frozen Foods
Medium
Tier 2
Supermarket Type2
11.17
0.039
121.43
17
Low Sugar
Hard Drinks
Medium
Tier 2
Supermarket Type2
8.49
0.199
138.99
39
Low Sugar
Baking Goods
High
Tier 2
Supermarket Type1
12.92
0.013
117.1
17
Regular
Snack Foods
Medium
Tier 2
Supermarket Type2
19.22
0.033
212.36
27
Low Sugar
Snack Foods
Medium
Tier 1
Departmental Store
12.67
0.042
159.77
17
Low Sugar
Breads
Medium
Tier 2
Supermarket Type2
15.65
0.093
184.74
39
Regular
Frozen Foods
High
Tier 2
Supermarket Type1
9.72
0.162
113.3
28
Low Sugar
Meat
Small
Tier 3
Food Mart
14.51
0.067
182.65
39
Low Sugar
Frozen Foods
High
Tier 2
Supermarket Type1
12.8
0.016
194.7
27
Low Sugar
Soft Drinks
Medium
Tier 1
Departmental Store
16.8
0.017
160.69
39
Low Sugar
Seafood
High
Tier 2
Supermarket Type1
15.05
0.1
229.89
27
Low Sugar
Canned
Medium
Tier 1
Departmental Store
11.81
0.07
128.82
17
Regular
Frozen Foods
Medium
Tier 2
Supermarket Type2
13.22
0.098
213.71
39
Regular
Canned
High
Tier 2
Supermarket Type1
13.06
0.098
135.29
17
Regular
Dairy
Medium
Tier 2
Supermarket Type2
10.17
0.031
156.69
17
No Sugar
Household
Medium
Tier 2
Supermarket Type2
10.2
0.016
116.99
28
No Sugar
Health and Hygiene
Small
Tier 3
Food Mart
15.45
0.012
191.07
27
Regular
Frozen Foods
Medium
Tier 1
Departmental Store
10.44
0.1
56.01
28
No Sugar
Household
Small
Tier 3
Food Mart
13.73
0.07
142.45
17
Regular
Breakfast
Medium
Tier 2
Supermarket Type2
15.47
0.029
175.2
39
Low Sugar
Soft Drinks
High
Tier 2
Supermarket Type1
12.16
0.03
158.08
17
Regular
Soft Drinks
Medium
Tier 2
Supermarket Type2
12.02
0.161
106.83
39
Low Sugar
Frozen Foods
High
Tier 2
Supermarket Type1
12.81
0.031
168.24
17
Low Sugar
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
13.55
0.029
147.92
17
Low Sugar
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
12.15
0.047
140.69
17
Regular
Frozen Foods
Medium
Tier 2
Supermarket Type2
15.8
0.05
177.27
39
Low Sugar
Snack Foods
High
Tier 2
Supermarket Type1
11.93
0.076
143.45
17
Low Sugar
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
11.2
0.014
181.94
17
Regular
Hard Drinks
Medium
Tier 2
Supermarket Type2
16.3
0.071
154.75
27
Low Sugar
Dairy
Medium
Tier 1
Departmental Store
12.23
0.058
164.15
17
Low Sugar
Seafood
Medium
Tier 2
Supermarket Type2
10.41
0.021
151.97
17
Low Sugar
Canned
Medium
Tier 2
Supermarket Type2
8.05
0.04
67.14
28
No Sugar
Health and Hygiene
Small
Tier 3
Food Mart
10.46
0.047
97.59
28
No Sugar
Health and Hygiene
Small
Tier 3
Food Mart
14.57
0.06
161.93
39
Low Sugar
Snack Foods
High
Tier 2
Supermarket Type1
10.57
0.042
125.25
17
Low Sugar
Meat
Medium
Tier 2
Supermarket Type2
9.66
0.062
178.03
17
No Sugar
Health and Hygiene
Medium
Tier 2
Supermarket Type2
13.53
0.023
196.65
39
No Sugar
Household
High
Tier 2
Supermarket Type1
7.59
0.191
176.98
17
Regular
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
19.12
0.056
193.68
27
Regular
Meat
Medium
Tier 1
Departmental Store
17.5
0.178
192.22
27
Regular
Meat
Medium
Tier 1
Departmental Store
12.47
0.064
156.27
17
Regular
Meat
Medium
Tier 2
Supermarket Type2
15.39
0.053
137.79
17
Low Sugar
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
14.17
0.064
142.1
17
Regular
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
11.94
0.019
136.14
17
Low Sugar
Dairy
Medium
Tier 2
Supermarket Type2
9.68
0.16
137.65
17
Low Sugar
Dairy
Medium
Tier 2
Supermarket Type2
15.82
0.031
162.76
27
Low Sugar
Fruits and Vegetables
Medium
Tier 1
Departmental Store
11.75
0.031
61.57
28
Regular
Snack Foods
Small
Tier 3
Food Mart
13.11
0.106
160.46
17
Low Sugar
Breakfast
Medium
Tier 2
Supermarket Type2
13.08
0.019
97.93
17
No Sugar
Health and Hygiene
Medium
Tier 2
Supermarket Type2
13.39
0.04
196.18
39
Regular
Fruits and Vegetables
High
Tier 2
Supermarket Type1
14.26
0.026
149.2
17
Regular
Canned
Medium
Tier 2
Supermarket Type2
14.8
0.055
130.36
17
Low Sugar
Snack Foods
Medium
Tier 2
Supermarket Type2
12.69
0.076
155.65
17
Regular
Dairy
Medium
Tier 2
Supermarket Type2
11.44
0.057
181.96
17
No Sugar
Household
Medium
Tier 2
Supermarket Type2
14.83
0.081
114.04
17
No Sugar
Health and Hygiene
Medium
Tier 2
Supermarket Type2
13.42
0.026
107.01
17
No Sugar
Health and Hygiene
Medium
Tier 2
Supermarket Type2
11.56
0.098
122.14
17
No Sugar
Household
Medium
Tier 2
Supermarket Type2
13.05
0.071
133.57
17
Regular
Fruits and Vegetables
Medium
Tier 2
Supermarket Type2
12.96
0.076
149.13
17
Low Sugar
Snack Foods
Medium
Tier 2
Supermarket Type2
14.66
0.14
153.72
39
Low Sugar
Canned
High
Tier 2
Supermarket Type1
13.51
0.212
143.48
17
Low Sugar
Snack Foods
Medium
Tier 2
Supermarket Type2
12.77
0.046
165.71
17
Low Sugar
Starchy Foods
Medium
Tier 2
Supermarket Type2
11.69
0.076
132.88
17
Regular
Canned
Medium
Tier 2
Supermarket Type2
12.73
0.028
166.77
17
Low Sugar
Meat
Medium
Tier 2
Supermarket Type2
12.25
0.031
102.71
39
Regular
Meat
High
Tier 2
Supermarket Type1
13.47
0.096
145.93
17
Low Sugar
Baking Goods
Medium
Tier 2
Supermarket Type2
12.5
0.081
135.26
17
Regular
Canned
Medium
Tier 2
Supermarket Type2
12.97
0.036
157.12
17
Regular
Snack Foods
Medium
Tier 2
Supermarket Type2
10.46
0.077
107.28
28
Low Sugar
Dairy
Small
Tier 3
Food Mart
13.91
0.098
186.73
39
Low Sugar
Baking Goods
High
Tier 2
Supermarket Type1
11.3
0.022
133.51
17
Low Sugar
Dairy
Medium
Tier 2
Supermarket Type2
12.11
0.027
106.65
17
Regular
Hard Drinks
Medium
Tier 2
Supermarket Type2
14.25
0.009
194.45
39
No Sugar
Household
High
Tier 2
Supermarket Type1
14.28
0.121
152.84
17
Low Sugar
Frozen Foods
Medium
Tier 2
Supermarket Type2
8.43
0.124
128.61
28
Low Sugar
Snack Foods
Small
Tier 3
Food Mart
10.84
0.103
162.99
17
No Sugar
Health and Hygiene
Medium
Tier 2
Supermarket Type2
14.04
0.167
145.76
17
No Sugar
Health and Hygiene
Medium
Tier 2
Supermarket Type2
10.77
0.016
136.99
17
Low Sugar
Canned
Medium
Tier 2
Supermarket Type2
9.16
0.047
123.95
28
Low Sugar
Dairy
Small
Tier 3
Food Mart
End of preview.

No dataset card yet

Downloads last month
7