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 10 new columns ({'irrigation_type', 'gender', 'farmer_hash', 'land_type', 'land_area', 'registered_date', 'status', 'place_text', 'approval_status', 'village_id'}) and 3 missing columns ({'center_code', 'center_name', 'is_warehouse'}).

This happened while the csv dataset builder was generating data using

hf://datasets/mishwani7/KP-AgriBench/farmers_anonymized.csv (at revision 7f2acbc2ff5341f0f8c00067580d1d29f7bcb281), ['hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/centers.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/farmers_anonymized.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/geography_hierarchy.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/products.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/revenue_audit_anonymized.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/sale_items_anonymized.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/sales_anonymized.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.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              farmer_hash: string
              district_id: int64
              center_id: double
              village_id: double
              gender: string
              land_area: double
              land_type: string
              irrigation_type: string
              status: string
              approval_status: string
              registered_date: string
              place_text: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1732
              to
              {'center_id': Value('int64'), 'district_id': Value('int64'), 'center_name': Value('string'), 'center_code': Value('string'), 'is_warehouse': Value('int64')}
              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 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              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 10 new columns ({'irrigation_type', 'gender', 'farmer_hash', 'land_type', 'land_area', 'registered_date', 'status', 'place_text', 'approval_status', 'village_id'}) and 3 missing columns ({'center_code', 'center_name', 'is_warehouse'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/mishwani7/KP-AgriBench/farmers_anonymized.csv (at revision 7f2acbc2ff5341f0f8c00067580d1d29f7bcb281), ['hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/centers.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/farmers_anonymized.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/geography_hierarchy.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/products.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/revenue_audit_anonymized.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/sale_items_anonymized.csv', 'hf://datasets/mishwani7/KP-AgriBench@7f2acbc2ff5341f0f8c00067580d1d29f7bcb281/sales_anonymized.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.

center_id
int64
district_id
int64
center_name
string
center_code
string
is_warehouse
int64
1
5
Central Warehouse
CW-01
1
4
5
Drosh Sale Point
SC-01
0
6
5
Chitral Sale Point
SC-02
0
7
5
Ayun Sale Point
SC-03
0
9
5
Garam Chashma Sale Point
SC-04
0
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
6
5
null
null
null
End of preview.

KP-AgriBench Dataset (mishwani7/KP-AgriBench)

An open-source, zero-PII benchmark dataset derived from real-world public agricultural extension & input supply-chain operations in Khyber Pakhtunkhwa (KP), Pakistan.

Files Included

File Rows Description
geography_hierarchy.csv 79 Canonical Village β†’ Union Council β†’ Tehsil β†’ District hierarchy
centers.csv 5 Service centers / sale points & central warehouse metadata
farmers_anonymized.csv 2,817 Hashed farmer profiles + 1,252 sanitized Roman-Urdu/local place strings
products.csv 46 Agricultural inputs (fertilizers, herbicides, insecticides, fungicides)
sales_anonymized.csv 230 Anonymized POS sales (payment method, discount, walk-in flag)
sale_items_anonymized.csv 252 Completed line-item quantities & unit prices for SKU demand forecasting
revenue_audit_anonymized.csv 424 Anonymized revenue transactions & bank deposit dates for lag auditing

Privacy & Zero-PII Guarantee

All names, CNICs, phone numbers, emails, photos, and raw street addresses are stripped or deterministically hashed (SHA-256). Automated tests (tests/test_zero_pii.py) verify zero PII patterns across every CSV.

Downloads last month
18

Models trained or fine-tuned on mishwani7/KP-AgriBench

Space using mishwani7/KP-AgriBench 1