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 2 new columns ({'metric', 'value'}) and 2 missing columns ({'completion', 'prompt'}).

This happened while the csv dataset builder was generating data using

hf://datasets/mabera/nigeria-fertilizer-dataset/nigeria_fertilizer_key_figures.csv (at revision d12b0ceca7d70c1508b80ef8ee1d929c06dd4478), ['hf://datasets/mabera/nigeria-fertilizer-dataset@d12b0ceca7d70c1508b80ef8ee1d929c06dd4478/nigeria_fertilizer_interpreter_dataset.csv', 'hf://datasets/mabera/nigeria-fertilizer-dataset@d12b0ceca7d70c1508b80ef8ee1d929c06dd4478/nigeria_fertilizer_key_figures.csv', 'hf://datasets/mabera/nigeria-fertilizer-dataset@d12b0ceca7d70c1508b80ef8ee1d929c06dd4478/nigeria_fertilizer_timeseries.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
              metric: string
              value: string
              source: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 612
              to
              {'prompt': Value('string'), 'completion': Value('string'), 'source': 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 2 new columns ({'metric', 'value'}) and 2 missing columns ({'completion', 'prompt'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/mabera/nigeria-fertilizer-dataset/nigeria_fertilizer_key_figures.csv (at revision d12b0ceca7d70c1508b80ef8ee1d929c06dd4478), ['hf://datasets/mabera/nigeria-fertilizer-dataset@d12b0ceca7d70c1508b80ef8ee1d929c06dd4478/nigeria_fertilizer_interpreter_dataset.csv', 'hf://datasets/mabera/nigeria-fertilizer-dataset@d12b0ceca7d70c1508b80ef8ee1d929c06dd4478/nigeria_fertilizer_key_figures.csv', 'hf://datasets/mabera/nigeria-fertilizer-dataset@d12b0ceca7d70c1508b80ef8ee1d929c06dd4478/nigeria_fertilizer_timeseries.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.

prompt
string
completion
string
source
string
Nigeria urea fertilizer prices rose from ₦35,000 per 50kg bag in February 2025 to ₦50,000 in May 2025, a 43 percent increase. NPK 20-10-10 rose from ₦43,000 to ₦48,000 over the same period, a 12 percent increase. The increases occurred despite relatively low farmer demand at the start of the planting season, driven by ...
The combination of low demand and rising prices is the notable feature here: normally, weak demand at the start of a planting season would put downward pressure on prices, not upward. That this did not happen indicates the price increase is being driven almost entirely by supply-side and currency factors, upstream inpu...
IFDC, Global Fertilizer Markets Today, Bulletin #14, 2 Jun 2026
Maize yields in Nigeria's poorly fertilized northern regions average 1.2 tons per hectare, compared to 3.5 tons per hectare in southern areas with better access to inputs, a roughly threefold gap. Nationally, more than 45 percent of Nigerian smallholder farmers reduced fertilizer purchases during 2022-2023, citing inpu...
The finding that cost, not availability, is the binding constraint for most farmers who cut back is significant because it points policy toward a different lever than infrastructure investment. If the problem were availability, distribution network expansion would be the fix. But since farmers report cost as the barrie...
AfDB, Africa Fertilizer Market and Finance Analysis, Mar 2023; ScienceDirect, Global shocks to fertilizer markets, 24 Dec 2024
The Presidential Fertilizer Initiative (PFI) launched in 2016 with an approved farmer price of ₦5,500 per 50kg bag, versus a prior market price of ₦10,000. At launch, 63 percent of key raw materials (Urea and Limestone) were locally available, yet Nigeria was still importing finished fertilizer product before the progr...
The pre-PFI situation, importing finished product despite 63 percent domestic raw material availability, indicates the original problem was not resource scarcity but processing and blending capacity, which is exactly what the PFI's local blending model was designed to fix. But the diversion and adulteration findings su...
NSIA, Presidential Fertilizer Initiative page, 16 Jul 2024; Nexdigm, Nigeria Fertilizer Market report, accessed 2026
National food price inflation in Nigeria peaked at approximately 40.9 percent in June 2024, following the 2023 removal of the fuel subsidy and the floating of the naira, then eased to approximately 21 to 23 percent by mid-2025 amid a more stable naira, tighter monetary policy, and better harvests in some regions. Ferti...
The sequence described, subsidy removal and currency float driving a food inflation spike, followed by partial recovery, followed by fertilizer prices rising again and renewed subsidy pressure, suggests Nigeria's food price stability is currently more dependent on macroeconomic conditions (currency stability, monetary ...
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
Nigeria has no domestic production of potash or phosphate, two of the three core NPK fertilizer components, and depends entirely on imports for diammonium phosphate (DAP) and muriate of potash (MOP), while urea is domestically produced. Approximately 40 percent of global urea exports originate in the Persian Gulf regio...
The near-40x growth in domestic production between 2010 and 2025 represents genuine capacity building, but the structural import dependency for potash and phosphate means this growth has not actually reduced Nigeria's exposure to global commodity shocks, it has only shifted which component of the fertilizer supply chai...
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
null
null
NSIA, Presidential Fertilizer Initiative page, 16 Jul 2024
null
null
FEPSAN, 'Presidential initiative on fertilizer kicks off'
null
null
NSIA, Presidential Fertilizer Initiative page, 16 Jul 2024
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026
null
null
PRNigeria/MOFI statement, 19 Sep 2025
null
null
Nexdigm, Nigeria Fertilizer Market report, accessed 2026
null
null
Nexdigm, Nigeria Fertilizer Market report, accessed 2026
null
null
ResearchGate, 'How do fertilizer subsidy programs affect total fertilizer use in Sub-Saharan Africa', Mason et al.
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026
null
null
PRNigeria/MOFI statement, 19 Sep 2025
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
null
null
IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
null
null
IFDC, Global Fertilizer Markets Today, Bulletin #14, 2 Jun 2026
null
null
IFDC, Global Fertilizer Markets Today, Bulletin #14, 2 Jun 2026
null
null
IFDC, Global Fertilizer Markets Today, Bulletin #14, 2 Jun 2026
null
null
IFDC, Global Fertilizer Markets Today, Bulletin #14, 2 Jun 2026
null
null
IFPRI/Food Security Portal, citing National Bureau of Statistics via Kirui et al. 2026
null
null
IFPRI/Food Security Portal, citing National Bureau of Statistics via Kirui et al. 2026
null
null
AfDB, Africa Fertilizer Market and Finance Analysis, Mar 2023 (regional gap figure)
null
null
AfDB, Africa Fertilizer Market and Finance Analysis, Mar 2023 (regional gap figure)
null
null
ScienceDirect, Global shocks to fertilizer markets, citing World Bank smallholder survey, 24 Dec 2024

Nigeria Fertilizer Dataset

Author: Hussein Adeiza (mabera) Role: Licensed Environmental Health Officer, Abuja Nigeria Built for: AutoScientist Challenge 2026, Part 2 — Agriculture Category

Dataset Description

A structured dataset on Nigeria's fertilizer access and farm-gate economics, built from IFPRI, IFDC, AfDB, NSIA, and NAFDAC reporting. Covers the 2025 urea price shock, the north-south maize yield gap, Presidential Fertilizer Initiative subsidy diversion, and Nigeria's structural potash/phosphate import dependency.

All figures cited per row to named sources. No primary institutional documents redistributed.

Files

nigeria_fertilizer_interpreter_dataset.csv

5 prompt-completion pairs in the "raw stats in, expert economic interpretation out" format. Each row contains a raw cited statistic block (prompt), a structured analytical interpretation (completion), and the specific source(s) cited.

nigeria_fertilizer_timeseries.csv

Year-by-year cited statistics on fertilizer production, price shocks, food inflation, and regional maize yield gaps, 2010-2025.

nigeria_fertilizer_key_figures.csv

Standalone reference table of 12 key cited statistics covering PFI policy history, subsidy diversion, adulteration, and structural import dependency.

Key Cited Findings

  • Urea prices rose 43% (₦35,000 → ₦50,000 per 50kg bag) between February and May 2025, despite weak planting-season demand
  • Maize yields: 1.2 tons/ha in poorly fertilized northern regions vs 3.5 tons/ha in southern regions, a threefold gap
  • Over 45% of smallholders cut fertilizer purchases in 2022-2023, citing cost, not availability, as the barrier
  • Nigeria has zero domestic potash or phosphate production, fully import-dependent for two of three core NPK components

Sources

  • IFPRI/Food Security Portal, citing Kirui et al. 2026, NSSP Policy Note 58
  • IFDC, Global Fertilizer Markets Today, Bulletin #14, 2 Jun 2026
  • AfDB, Africa Fertilizer Market and Finance Analysis, Mar 2023
  • ScienceDirect, Global shocks to fertilizer markets, 24 Dec 2024
  • NSIA, Presidential Fertilizer Initiative page, 16 Jul 2024
  • Nexdigm, Nigeria Fertilizer Market report, accessed 2026
  • FEPSAN, Presidential initiative on fertilizer kicks off
  • PRNigeria/MOFI statement, 19 Sep 2025

Related Links

Credits

Powered by Adaptive Data — Adaption Labs AutoScientist Challenge 2026, Part 2 — Agriculture Category

Downloads last month
51

Space using mabera/nigeria-fertilizer-dataset 1