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 1 new columns ({'Product_Store_Sales_Total'})

This happened while the csv dataset builder was generating data using

hf://datasets/dystopianfoe/sales_prediction/superkart.csv (at revision af524ea6f0630da25285f446f73884e7ddf8ff15)

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

No dataset card yet

Downloads last month
8

Space using dystopianfoe/sales_prediction 1