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'}) and 9 missing columns ({'Store_Type', 'Store_Size', 'Store_Location_City_Type', 'Store_Establishment_Year', 'Product_Type', 'Product_Weight', 'Product_MRP', 'Product_Allocated_Area', 'Product_Sugar_Content'}).

This happened while the csv dataset builder was generating data using

hf://datasets/JefferyMendis/superkart/processed/y_train.csv (at revision 5da8aca49c130a51f19cd8cc5b5908029099ac3f)

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_Store_Sales_Total: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 413
              to
              {'Product_Weight': Value('float64'), 'Product_Sugar_Content': Value('string'), 'Product_Allocated_Area': Value('float64'), 'Product_Type': Value('string'), 'Product_MRP': Value('float64'), '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'}) and 9 missing columns ({'Store_Type', 'Store_Size', 'Store_Location_City_Type', 'Store_Establishment_Year', 'Product_Type', 'Product_Weight', 'Product_MRP', 'Product_Allocated_Area', 'Product_Sugar_Content'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/JefferyMendis/superkart/processed/y_train.csv (at revision 5da8aca49c130a51f19cd8cc5b5908029099ac3f)
              
              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_Sugar_Content
string
Product_Allocated_Area
float64
Product_Type
string
Product_MRP
float64
Store_Establishment_Year
int64
Store_Size
string
Store_Location_City_Type
string
Store_Type
string
13.64
No Sugar
0.071
Household
157.1
2,009
Medium
Tier 2
Supermarket Type2
10.03
Low Sugar
0.016
Frozen Foods
126.66
1,987
High
Tier 2
Supermarket Type1
12.26
Low Sugar
0.14
Snack Foods
138.27
2,009
Medium
Tier 2
Supermarket Type2
10.28
Low Sugar
0.143
Canned
147.44
2,009
Medium
Tier 2
Supermarket Type2
16.38
Low Sugar
0.082
Baking Goods
205.16
1,999
Medium
Tier 1
Departmental Store
13.37
Low Sugar
0.113
Baking Goods
137.21
2,009
Medium
Tier 2
Supermarket Type2
11.8
reg
0.029
Breads
144.64
2,009
Medium
Tier 2
Supermarket Type2
9.61
Low Sugar
0.026
Snack Foods
161.79
2,009
Medium
Tier 2
Supermarket Type2
11.98
Low Sugar
0.086
Fruits and Vegetables
125.08
2,009
Medium
Tier 2
Supermarket Type2
11.5
Low Sugar
0.039
Dairy
159.66
2,009
Medium
Tier 2
Supermarket Type2
12.66
Regular
0.153
Canned
151.92
2,009
Medium
Tier 2
Supermarket Type2
9.18
Regular
0.171
Dairy
115.82
1,998
Small
Tier 3
Food Mart
13.61
No Sugar
0.03
Household
146.14
2,009
Medium
Tier 2
Supermarket Type2
13.18
No Sugar
0.059
Health and Hygiene
178.63
1,999
Medium
Tier 1
Departmental Store
13.18
Low Sugar
0.056
Fruits and Vegetables
164.71
2,009
Medium
Tier 2
Supermarket Type2
10.56
Regular
0.012
Baking Goods
131.37
2,009
Medium
Tier 2
Supermarket Type2
15.45
No Sugar
0.036
Household
166.22
1,999
Medium
Tier 1
Departmental Store
15.4
Low Sugar
0.128
Fruits and Vegetables
177.14
1,987
High
Tier 2
Supermarket Type1
13.89
Low Sugar
0.047
Meat
153.26
2,009
Medium
Tier 2
Supermarket Type2
13.31
Low Sugar
0.1
Snack Foods
160.34
2,009
Medium
Tier 2
Supermarket Type2
10.43
Regular
0.077
Snack Foods
119.8
1,999
Medium
Tier 1
Departmental Store
12.73
Low Sugar
0.056
Fruits and Vegetables
144.22
2,009
Medium
Tier 2
Supermarket Type2
10.95
Low Sugar
0.027
Frozen Foods
120.35
2,009
Medium
Tier 2
Supermarket Type2
13.64
Regular
0.016
Dairy
155.99
2,009
Medium
Tier 2
Supermarket Type2
13.7
No Sugar
0.016
Health and Hygiene
136.46
2,009
Medium
Tier 2
Supermarket Type2
12.74
Regular
0.025
Snack Foods
121.39
2,009
Medium
Tier 2
Supermarket Type2
16.86
Low Sugar
0.061
Fruits and Vegetables
217.5
1,999
Medium
Tier 1
Departmental Store
11.69
Low Sugar
0.076
Frozen Foods
141.63
2,009
Medium
Tier 2
Supermarket Type2
11.76
Low Sugar
0.124
Frozen Foods
185.36
1,987
High
Tier 2
Supermarket Type1
12.78
Low Sugar
0.058
Snack Foods
181.08
1,987
High
Tier 2
Supermarket Type1
18.01
No Sugar
0.012
Health and Hygiene
229.54
1,999
Medium
Tier 1
Departmental Store
9.99
Low Sugar
0.04
Hard Drinks
97.16
1,998
Small
Tier 3
Food Mart
10.09
No Sugar
0.02
Household
116
1,998
Small
Tier 3
Food Mart
11
Regular
0.078
Soft Drinks
167.49
2,009
Medium
Tier 2
Supermarket Type2
9.5
Low Sugar
0.05
Fruits and Vegetables
80.23
1,998
Small
Tier 3
Food Mart
13.61
Regular
0.056
Fruits and Vegetables
135.29
2,009
Medium
Tier 2
Supermarket Type2
12.14
Low Sugar
0.09
Baking Goods
95.05
1,998
Small
Tier 3
Food Mart
11.73
Regular
0.048
Soft Drinks
122.21
2,009
Medium
Tier 2
Supermarket Type2
15.2
Low Sugar
0.013
Baking Goods
164.09
1,999
Medium
Tier 1
Departmental Store
14.23
Regular
0.057
Soft Drinks
156.52
1,987
High
Tier 2
Supermarket Type1
12.95
Regular
0.114
Baking Goods
134.98
2,009
Medium
Tier 2
Supermarket Type2
13.13
Regular
0.095
Snack Foods
116.75
2,009
Medium
Tier 2
Supermarket Type2
12.83
Low Sugar
0.011
Dairy
150.54
2,009
Medium
Tier 2
Supermarket Type2
10.84
Low Sugar
0.049
Meat
124.93
1,998
Small
Tier 3
Food Mart
10.92
Low Sugar
0.052
Fruits and Vegetables
100.26
1,998
Small
Tier 3
Food Mart
13.68
Low Sugar
0.022
Canned
169.62
1,987
High
Tier 2
Supermarket Type1
13.02
No Sugar
0.02
Health and Hygiene
136.03
2,009
Medium
Tier 2
Supermarket Type2
11.73
Low Sugar
0.128
Soft Drinks
137.31
2,009
Medium
Tier 2
Supermarket Type2
13.31
Low Sugar
0.066
Fruits and Vegetables
162.29
2,009
Medium
Tier 2
Supermarket Type2
11.68
Regular
0.142
Fruits and Vegetables
142.45
2,009
Medium
Tier 2
Supermarket Type2
11.73
Low Sugar
0.144
Canned
164.52
2,009
Medium
Tier 2
Supermarket Type2
12.28
No Sugar
0.012
Household
206.85
1,987
High
Tier 2
Supermarket Type1
10.86
Low Sugar
0.058
Snack Foods
161.79
2,009
Medium
Tier 2
Supermarket Type2
11.77
Low Sugar
0.025
Dairy
152.22
1,999
Medium
Tier 1
Departmental Store
17.11
Regular
0.065
Snack Foods
180.36
1,999
Medium
Tier 1
Departmental Store
11.49
reg
0.11
Snack Foods
135.98
2,009
Medium
Tier 2
Supermarket Type2
13.31
Regular
0.074
Snack Foods
134.89
2,009
Medium
Tier 2
Supermarket Type2
10.89
Regular
0.142
Frozen Foods
112.77
1,987
High
Tier 2
Supermarket Type1
15.26
Low Sugar
0.168
Baking Goods
173.03
1,987
High
Tier 2
Supermarket Type1
8.27
No Sugar
0.075
Health and Hygiene
156.11
2,009
Medium
Tier 2
Supermarket Type2
14.88
Regular
0.099
Canned
146.81
2,009
Medium
Tier 2
Supermarket Type2
12.44
Low Sugar
0.093
Dairy
137.86
1,998
Small
Tier 3
Food Mart
12.44
Low Sugar
0.061
Canned
137.09
2,009
Medium
Tier 2
Supermarket Type2
12.32
Regular
0.032
Soft Drinks
181.1
1,987
High
Tier 2
Supermarket Type1
18.12
Low Sugar
0.031
Dairy
202.1
1,999
Medium
Tier 1
Departmental Store
13.21
Low Sugar
0.059
Soft Drinks
151.87
2,009
Medium
Tier 2
Supermarket Type2
7.72
Low Sugar
0.07
Fruits and Vegetables
123.45
1,998
Small
Tier 3
Food Mart
11.8
No Sugar
0.046
Household
164.82
2,009
Medium
Tier 2
Supermarket Type2
14.19
Low Sugar
0.08
Fruits and Vegetables
143.34
2,009
Medium
Tier 2
Supermarket Type2
13.09
Low Sugar
0.112
Soft Drinks
123.09
2,009
Medium
Tier 2
Supermarket Type2
12.01
Regular
0.019
Canned
134.17
2,009
Medium
Tier 2
Supermarket Type2
15.55
Low Sugar
0.054
Frozen Foods
175.65
1,987
High
Tier 2
Supermarket Type1
14.84
Low Sugar
0.064
Dairy
135.55
2,009
Medium
Tier 2
Supermarket Type2
12.04
No Sugar
0.064
Health and Hygiene
99.19
1,987
High
Tier 2
Supermarket Type1
17.15
Low Sugar
0.094
Baking Goods
182.91
1,999
Medium
Tier 1
Departmental Store
9.77
Low Sugar
0.03
Dairy
132.65
2,009
Medium
Tier 2
Supermarket Type2
9.88
Low Sugar
0.032
Snack Foods
142.22
2,009
Medium
Tier 2
Supermarket Type2
11.85
Low Sugar
0.137
Breads
172.17
2,009
Medium
Tier 2
Supermarket Type2
15.83
Low Sugar
0.065
Frozen Foods
180.77
1,987
High
Tier 2
Supermarket Type1
10.71
Regular
0.066
Canned
118.97
1,987
High
Tier 2
Supermarket Type1
11.45
Low Sugar
0.034
Dairy
133.9
2,009
Medium
Tier 2
Supermarket Type2
10.09
Low Sugar
0.038
Frozen Foods
129.34
2,009
Medium
Tier 2
Supermarket Type2
10.15
No Sugar
0.016
Household
104
1,998
Small
Tier 3
Food Mart
14.76
No Sugar
0.161
Household
188.48
1,987
High
Tier 2
Supermarket Type1
13.89
Low Sugar
0.016
Breads
143.01
2,009
Medium
Tier 2
Supermarket Type2
14.53
Low Sugar
0.092
Breads
218.91
1,999
Medium
Tier 1
Departmental Store
12.68
Low Sugar
0.017
Snack Foods
102.94
2,009
Medium
Tier 2
Supermarket Type2
13.48
Regular
0.129
Frozen Foods
142.83
2,009
Medium
Tier 2
Supermarket Type2
12.41
No Sugar
0.042
Health and Hygiene
166.09
2,009
Medium
Tier 2
Supermarket Type2
9.82
Low Sugar
0.045
Baking Goods
128.34
1,987
High
Tier 2
Supermarket Type1
10.3
Low Sugar
0.116
Soft Drinks
130.39
2,009
Medium
Tier 2
Supermarket Type2
13.14
Regular
0.034
Frozen Foods
97.35
2,009
Medium
Tier 2
Supermarket Type2
11.92
Regular
0.031
Dairy
138.42
1,998
Small
Tier 3
Food Mart
10.94
Low Sugar
0.138
Dairy
121.01
2,009
Medium
Tier 2
Supermarket Type2
11.65
Low Sugar
0.058
Fruits and Vegetables
135.76
2,009
Medium
Tier 2
Supermarket Type2
11.48
Low Sugar
0.122
Dairy
153.27
2,009
Medium
Tier 2
Supermarket Type2
11.72
Low Sugar
0.022
Meat
133.1
2,009
Medium
Tier 2
Supermarket Type2
15.11
No Sugar
0.014
Health and Hygiene
176.72
1,987
High
Tier 2
Supermarket Type1
13.67
Low Sugar
0.028
Frozen Foods
141.51
2,009
Medium
Tier 2
Supermarket Type2
10.8
No Sugar
0.07
Health and Hygiene
135.13
2,009
Medium
Tier 2
Supermarket Type2
End of preview.

No dataset card yet

Downloads last month
7