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 8 new columns ({'date', 'is_forecast', 'precip_mm', 'country', 'precip_anomaly_mm', 'tmax_c', 'tmax_anomaly_c', 'iso3'}) and 7 missing columns ({'month', 'group', 'alps_band', 'unit', 'price_zscore', 'price', 'commodity'}).

This happened while the csv dataset builder was generating data using

hf://datasets/sanghoonio/food-security-data/data/weather_daily.csv (at revision 75b7ce59c99d515ab6206d0de369507a5505df7b), ['hf://datasets/sanghoonio/food-security-data@75b7ce59c99d515ab6206d0de369507a5505df7b/data/prices_monthly.csv', 'hf://datasets/sanghoonio/food-security-data@75b7ce59c99d515ab6206d0de369507a5505df7b/data/weather_daily.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 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/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.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              date: string
              iso3: string
              country: string
              tmax_c: double
              precip_mm: double
              tmax_anomaly_c: double
              precip_anomaly_mm: double
              is_forecast: bool
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1223
              to
              {'month': Value('string'), 'commodity': Value('string'), 'group': Value('string'), 'unit': Value('string'), 'price': Value('float64'), 'price_zscore': Value('float64'), 'alps_band': 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 1369, 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 948, 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 1683, 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 1839, 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 8 new columns ({'date', 'is_forecast', 'precip_mm', 'country', 'precip_anomaly_mm', 'tmax_c', 'tmax_anomaly_c', 'iso3'}) and 7 missing columns ({'month', 'group', 'alps_band', 'unit', 'price_zscore', 'price', 'commodity'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/sanghoonio/food-security-data/data/weather_daily.csv (at revision 75b7ce59c99d515ab6206d0de369507a5505df7b), ['hf://datasets/sanghoonio/food-security-data@75b7ce59c99d515ab6206d0de369507a5505df7b/data/prices_monthly.csv', 'hf://datasets/sanghoonio/food-security-data@75b7ce59c99d515ab6206d0de369507a5505df7b/data/weather_daily.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.

month
string
commodity
string
group
string
unit
string
price
float64
price_zscore
float64
alps_band
string
2023-07-01
DAP
Fertilizer
($/mt)
458.8
-1.905319
Normal
2023-08-01
DAP
Fertilizer
($/mt)
528.8
-0.887518
Normal
2023-09-01
DAP
Fertilizer
($/mt)
527.9
-0.760086
Normal
2023-10-01
DAP
Fertilizer
($/mt)
534.8
-0.556712
Normal
2023-11-01
DAP
Fertilizer
($/mt)
535.6
-0.421292
Normal
2023-12-01
DAP
Fertilizer
($/mt)
563.8
0.132257
Normal
2024-01-01
DAP
Fertilizer
($/mt)
596.3
0.750385
Stress
2024-02-01
DAP
Fertilizer
($/mt)
583.8
0.629424
Stress
2024-03-01
DAP
Fertilizer
($/mt)
617.5
1.30317
Alert
2024-04-01
DAP
Fertilizer
($/mt)
545
-0.013004
Normal
2024-05-01
DAP
Fertilizer
($/mt)
522
-0.325999
Normal
2024-06-01
DAP
Fertilizer
($/mt)
543
0.080417
Normal
2024-07-01
DAP
Fertilizer
($/mt)
539.4
-0.17202
Normal
2024-08-01
DAP
Fertilizer
($/mt)
546
-0.234391
Normal
2024-09-01
DAP
Fertilizer
($/mt)
554.8
0.007018
Normal
2024-10-01
DAP
Fertilizer
($/mt)
573.4
0.581758
Stress
2024-11-01
DAP
Fertilizer
($/mt)
574.5
0.517239
Stress
2024-12-01
DAP
Fertilizer
($/mt)
568.3
0.184907
Normal
2025-01-01
DAP
Fertilizer
($/mt)
582.7
0.701702
Stress
2025-02-01
DAP
Fertilizer
($/mt)
603.8
1.593723
Alert
2025-03-01
DAP
Fertilizer
($/mt)
615.1
1.821197
Alert
2025-04-01
DAP
Fertilizer
($/mt)
635
2.578243
Crisis
2025-05-01
DAP
Fertilizer
($/mt)
669.2
2.916171
Crisis
2025-06-01
DAP
Fertilizer
($/mt)
715.4
3.287452
Crisis
2025-07-01
DAP
Fertilizer
($/mt)
736
2.604386
Crisis
2025-08-01
DAP
Fertilizer
($/mt)
795.1
2.882875
Crisis
2025-09-01
DAP
Fertilizer
($/mt)
780.6
1.87747
Alert
2025-10-01
DAP
Fertilizer
($/mt)
754
1.199593
Alert
2025-11-01
DAP
Fertilizer
($/mt)
708.3
0.46787
Stress
2025-12-01
DAP
Fertilizer
($/mt)
627.5
-0.670761
Normal
2026-01-01
DAP
Fertilizer
($/mt)
619.2
-0.908557
Normal
2026-02-01
DAP
Fertilizer
($/mt)
626.5
-0.899852
Normal
2026-03-01
DAP
Fertilizer
($/mt)
658.3
-0.479961
Normal
2026-04-01
DAP
Fertilizer
($/mt)
725.3
0.50048
Stress
2026-05-01
DAP
Fertilizer
($/mt)
769.5
1.1235
Alert
2026-06-01
DAP
Fertilizer
($/mt)
783.8
1.181451
Alert
2023-07-01
Maize
Food staple
($/mt)
242.4
-2.54895
Normal
2023-08-01
Maize
Food staple
($/mt)
207.6
-3.199222
Normal
2023-09-01
Maize
Food staple
($/mt)
223.8
-1.716911
Normal
2023-10-01
Maize
Food staple
($/mt)
230.7
-1.221979
Normal
2023-11-01
Maize
Food staple
($/mt)
211.3
-1.613291
Normal
2023-12-01
Maize
Food staple
($/mt)
206.5
-1.504024
Normal
2024-01-01
Maize
Food staple
($/mt)
198.6
-1.479305
Normal
2024-02-01
Maize
Food staple
($/mt)
189.1
-1.527703
Normal
2024-03-01
Maize
Food staple
($/mt)
190.6
-1.274893
Normal
2024-04-01
Maize
Food staple
($/mt)
191.7
-1.06404
Normal
2024-05-01
Maize
Food staple
($/mt)
197.8
-0.755226
Normal
2024-06-01
Maize
Food staple
($/mt)
192.5
-0.864296
Normal
2024-07-01
Maize
Food staple
($/mt)
177.4
-1.700949
Normal
2024-08-01
Maize
Food staple
($/mt)
170.3
-2.042718
Normal
2024-09-01
Maize
Food staple
($/mt)
185
-0.762232
Normal
2024-10-01
Maize
Food staple
($/mt)
190.3
-0.30328
Normal
2024-11-01
Maize
Food staple
($/mt)
201.3
0.844005
Stress
2024-12-01
Maize
Food staple
($/mt)
202.6
1.163949
Alert
2025-01-01
Maize
Food staple
($/mt)
214.4
2.497189
Crisis
2025-02-01
Maize
Food staple
($/mt)
220.9
2.498009
Crisis
2025-03-01
Maize
Food staple
($/mt)
207.4
0.901603
Stress
2025-04-01
Maize
Food staple
($/mt)
215
1.301068
Alert
2025-05-01
Maize
Food staple
($/mt)
203.9
0.385818
Stress
2025-06-01
Maize
Food staple
($/mt)
196.1
-0.148263
Normal
2025-07-01
Maize
Food staple
($/mt)
192
-0.432334
Normal
2025-08-01
Maize
Food staple
($/mt)
185.5
-1.014174
Normal
2025-09-01
Maize
Food staple
($/mt)
197.4
-0.321278
Normal
2025-10-01
Maize
Food staple
($/mt)
198.1
-0.383463
Normal
2025-11-01
Maize
Food staple
($/mt)
202
-0.08648
Normal
2025-12-01
Maize
Food staple
($/mt)
205.7
0.270254
Stress
2026-01-01
Maize
Food staple
($/mt)
204.5
0.127
Normal
2026-02-01
Maize
Food staple
($/mt)
209.6
0.750055
Stress
2026-03-01
Maize
Food staple
($/mt)
212.7
1.39352
Alert
2026-04-01
Maize
Food staple
($/mt)
214
1.414689
Alert
2026-05-01
Maize
Food staple
($/mt)
216.2
1.708087
Alert
2026-06-01
Maize
Food staple
($/mt)
197.1
-0.607751
Normal
2023-07-01
Phosphate rock
Fertilizer
($/mt)
342.5
1.06807
Alert
2023-08-01
Phosphate rock
Fertilizer
($/mt)
346.3
1.126168
Alert
2023-09-01
Phosphate rock
Fertilizer
($/mt)
347.5
1.026399
Alert
2023-10-01
Phosphate rock
Fertilizer
($/mt)
347.5
0.880138
Stress
2023-12-01
Phosphate rock
Fertilizer
($/mt)
152.5
-8.765577
Normal
2024-01-01
Phosphate rock
Fertilizer
($/mt)
152.5
-3.008141
Normal
2024-02-01
Phosphate rock
Fertilizer
($/mt)
152.5
-2.102253
Normal
2024-03-01
Phosphate rock
Fertilizer
($/mt)
152.5
-1.653393
Normal
2024-04-01
Phosphate rock
Fertilizer
($/mt)
152.5
-1.353875
Normal
2024-05-01
Phosphate rock
Fertilizer
($/mt)
152.5
-1.132743
Normal
2024-06-01
Phosphate rock
Fertilizer
($/mt)
152.5
-0.957346
Normal
2024-07-01
Phosphate rock
Fertilizer
($/mt)
152.5
-0.809105
Normal
2024-08-01
Phosphate rock
Fertilizer
($/mt)
152.5
-0.676946
Normal
2024-09-01
Phosphate rock
Fertilizer
($/mt)
152.5
-0.552768
Normal
2024-10-01
Phosphate rock
Fertilizer
($/mt)
152.5
-0.428174
Normal
2024-11-01
Phosphate rock
Fertilizer
($/mt)
152.5
-0.288675
Normal
2024-12-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-01-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-02-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-03-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-04-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-05-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-06-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-07-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-08-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-09-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-10-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
2025-11-01
Phosphate rock
Fertilizer
($/mt)
152.5
null
null
End of preview.

No dataset card yet

Downloads last month
25