Dataset Viewer
Auto-converted to Parquet Duplicate
id
large_stringlengths
3
12
name
large_stringlengths
3
20
category
large_stringclasses
9 values
harvested_product
large_stringlengths
4
11
uptake_n_kg_per_t
float64
2.1
178
โŒ€
uptake_p2o5_kg_per_t
float64
0.9
30.9
โŒ€
uptake_k2o_kg_per_t
float64
3.4
174
โŒ€
uptake_s_kg_per_t
float64
0.3
11.7
โŒ€
removal_n_kg_per_t
float64
2.7
41.7
โŒ€
removal_p2o5_kg_per_t
float64
0.9
13.9
โŒ€
removal_k2o_kg_per_t
float64
3.6
51.7
โŒ€
removal_s_kg_per_t
float64
0.3
4
โŒ€
stage_initial_days
int64
15
35
โŒ€
stage_development_days
int64
15
60
โŒ€
stage_mid_days
int64
30
190
โŒ€
stage_late_days
int64
15
120
โŒ€
season_days
int64
85
405
โŒ€
stages_region
large_stringlengths
7
27
โŒ€
yield_africa_t_ha
float64
0.45
64.9
โŒ€
yield_areas
large_stringclasses
5 values
research_status
large_stringclasses
2 values
last_verified
large_stringdate
2026-11-17 00:00:00
2026-11-18 00:00:00
source_ids
large_stringclasses
10 values
record_path
large_stringlengths
27
36
cassava
Cassava
root_tuber
fresh root
5
2.3
6.8
0.4
null
null
null
null
20
40
90
60
210
Tropical regions (year 1)
8.09
Africa; Eastern Africa; Western Africa; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-02; FAO-03; OWID-01
research/CropX/crops/cassava.md
coffee
Coffee
beverage
green beans
129
27
174
5
null
null
null
null
null
null
null
null
null
null
0.45
Africa; Eastern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
PARTIAL
2026-11-17
FAO-02; OWID-04
research/CropX/crops/coffee.md
cotton
Cotton
fibre
seed cotton
43.2
29.3
53.3
null
24.2
9.6
11.9
1.9
30
50
60
55
195
Egypt; Pakistan; California
1.05
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-18
FAO-01; FAO-02; FAO-03; FAO-04
research/CropX/crops/cotton.md
dry-beans
Dry beans
pulse
dry beans
null
null
null
null
41.7
13.9
13.9
2.8
20
30
40
20
110
Continental climates
0.81
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
PARTIAL
2026-11-17
FAO-01; FAO-03; OWID-01
research/CropX/crops/dry-beans.md
groundnut
Groundnut
oilseed
seed (nuts)
58.1
19.6
30.1
7.9
35
5.5
8.8
2.5
25
35
45
25
130
West Africa
0.99
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-18
FAO-01; FAO-02; FAO-03; FAO-04
research/CropX/crops/groundnut.md
maize
Maize
cereal
grain
29.9
13.5
32.8
null
16.1
6.3
4.8
1.2
30
50
60
40
180
East Africa (altitude)
2.16
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-01; FAO-02; FAO-03; OWID-01
research/CropX/crops/maize.md
pearl-millet
Pearl millet
cereal
grain
31.8
17.4
61.3
null
null
null
null
null
15
25
40
25
105
Pakistan
0.69
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-18
FAO-02; FAO-03; FAO-04
research/CropX/crops/pearl-millet.md
potato
Potato
root_tuber
tuber
3.3
0.9
6.2
0.4
null
null
null
null
25
30
30
30
115
(Semi) arid climate
15.1
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-02; FAO-03; OWID-01
research/CropX/crops/potato.md
rice
Rice
cereal
paddy
20
11
30
3
null
null
null
null
30
30
60
30
150
Tropics; Mediterranean
2.36
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-02; FAO-03; OWID-01
research/CropX/crops/rice.md
sorghum
Sorghum
cereal
grain
16.4
7.7
25.5
null
14.9
7.4
4.5
1.5
20
35
45
30
130
Arid region
0.97
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-18
FAO-01; FAO-02; FAO-03; FAO-04
research/CropX/crops/sorghum.md
soybean
Soybean
oilseed
seed
70.7
30.9
57.7
6.7
null
null
null
null
15
15
40
15
85
Tropics
1.38
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-02; FAO-03; OWID-01
research/CropX/crops/soybean.md
sugarcane
Sugarcane
sugar
cane
2.1
1.2
3.4
0.3
null
null
null
null
35
60
190
120
405
Low latitudes (plant crop)
64.91
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-02; FAO-03; OWID-02
research/CropX/crops/sugarcane.md
sunflower
Sunflower
oilseed
seed
63.3
19.1
126
11.7
null
null
null
null
25
35
45
25
130
Mediterranean; California
1.12
Africa; Eastern Africa; Southern Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-18
FAO-02; FAO-03; FAO-04
research/CropX/crops/sunflower.md
tea
Tea
beverage
made tea
178.3
3.5
115.1
10
null
null
null
null
null
null
null
null
null
null
null
PARTIAL
2026-11-17
FAO-02
research/CropX/crops/tea.md
tobacco
Tobacco (flue-cured)
industrial
cured leaf
null
null
null
null
28.3
5
51.7
4
null
null
null
null
null
null
1.16
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
PARTIAL
2026-11-18
FAO-01; FAO-04
research/CropX/crops/tobacco.md
tomato
Tomato
vegetable
fruit
2.8
1.3
3.8
null
2.7
0.9
3.6
0.3
30
40
40
25
135
Arid region
14.41
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-01; FAO-02; FAO-03; OWID-03
research/CropX/crops/tomato.md
wheat
Wheat
cereal
grain
25
9
33
4.7
20.8
10.4
6.3
1.3
15
30
65
40
150
East Africa
2.84
Africa; Eastern Africa; Southern Africa; Western Africa; Ethiopia; Kenya; Malawi; Tanzania; Zambia; Zimbabwe; World
VERIFIED
2026-11-17
FAO-01; FAO-02; FAO-03; OWID-01
research/CropX/crops/wheat.md

CropX: crop nutrient needs, growth stages and yields (v1.0.0)

CropX describes 17 crops grown in Africa: how much N, P2O5, K2O and S a crop takes up and carries off per tonne of harvest, how many days it spends in each FAO growth stage, and the lowest, average and highest yield of 2020 to 2024 for Africa, its regions, six countries and the world. Every value carries its source and a confidence level. It pairs with FertX: P and K are on the same label basis as fertilizer grades.

Dataset version 1.0.0
Generated 2026-11-17
Release package prepared 2026-11-18
Records 17 crops: 13 VERIFIED, 4 PARTIAL; 172 yield rows
Categories cereal 5, oilseed 3, root and tuber 2, beverage 2, pulse 1, fibre 1, vegetable 1, sugar 1, industrial 1
Source register 8 sources
License CC BY 4.0

Typical figures, not a recommendation. Uptake and removal per tonne vary with variety, soil and yield level (FAO notes N uptake per tonne varying 1.7-fold between sites). Yields are national or regional averages, mostly smallholder rain-fed farming, not attainable yields.

Configurations and files

Config File Rows Use it for
default data/cropx.parquet 17 Flat table (24 columns) for pandas, Polars and DuckDB.
full data/cropx_full.parquet 17 Same records plus the nested fields_detail and yields.
yields data/yields.parquet 172 One row per crop and area: years, low, average and high t/ha.
sources data/sources.parquet 8 The source register that source_ids point to.

The full, yields and sources Parquet files are lossless conversions of data/cropx.jsonl, data/yields.csv and data/sources.csv; the release validation checks them against the originals, which are included with data/cropx.json, data/cropx.csv and data/SHA256SUMS.

Loading

from datasets import load_dataset

crops = load_dataset("xexflare/cropx", split="train")
yields = load_dataset("xexflare/cropx", "yields", split="train")
malawi_maize = yields.filter(lambda r: r["crop_id"] == "maize" and r["area"] == "Malawi")
import pandas as pd

crops = pd.read_parquet("hf://datasets/xexflare/cropx/data/cropx.parquet").set_index("id")
need_n = 3 * crops.loc["maize", "uptake_n_kg_per_t"]   # kg N taken up by a 3 t/ha maize crop

Intended use

  • Fertilizer and farm-budget calculators: the N, P and K a crop needs for a target yield.
  • Setting realistic yield expectations from the five-year range for a country or region.
  • Timing: how long each growth stage lasts, for planting and top-dressing calendars.

Not suitable as the only basis for a fertilizer recommendation. Soil tests and local extension advice come first.

Schema

Identity: id (e.g. maize), name, category, harvested_product (what the per-tonne figures and yields refer to).

Nutrients (kg per tonne of harvested product): uptake_n_kg_per_t, uptake_p2o5_kg_per_t, uptake_k2o_kg_per_t, uptake_s_kg_per_t (whole crop, residues included); removal_n_kg_per_t, removal_p2o5_kg_per_t, removal_k2o_kg_per_t, removal_s_kg_per_t (carried off in the harvest).

Growth stages (days): stage_initial_days, stage_development_days, stage_mid_days, stage_late_days, season_days, stages_region (the FAO 56 row used).

Yields: yield_africa_t_ha (five-year Africa average) and yields, a list of { area, years, low_t_ha, average_t_ha, high_t_ha, source_ids }.

Provenance: research_status, last_verified, source_ids, record_path, and in the full config fields_detail.

Full field reference: SCHEMA.md.

Confidence levels

Level Meaning
CONFIRMED Stated explicitly by a primary source (the FAO 56 growth stages).
STRONG Two sources agree.
SUPPORTED One source; all uptake and removal figures, since they vary by site.
(empty) Classifying fields such as name and category.

Collection methodology

  1. Uptake comes from FAO Fertilizer and Plant Nutrition Bulletin 16, Table 29 (Indian data summarized in Tandon, 2004); removal from the same bulletin's Table 28 (US data). They come from different studies, so removal can exceed uptake for a nutrient (wheat P2O5); both are kept as published.
  2. Growth stages come from FAO Irrigation and Drainage Paper 56, Table 11: an African row first, then tropical, then arid, then any; other rows are in the notes.
  3. Yields are FAOSTAT's (2025 release, directly and through Our World in Data): for each area, the lowest, mean and highest of the five most recent years.
  4. The build checks that the stages add up, yields are ordered, and every value cites a registered source. The research files themselves are not published.

Source attribution

Nutrient and growth-stage figures: FAO (Bulletin 16, 2006; Irrigation and Drainage Paper 56, 1998). Yields: Food and Agriculture Organization of the United Nations, "Production: Crops and livestock products" (FAOSTAT, 2025), with processing by Our World in Data. Facts remain attributable to their original publishers; each source keeps its own terms.

Validation and known limits

Automated validation passes: counts match in every format; JSON and JSONL are deep-equal; every CSV and Parquet value matches the JSON; yields.csv holds exactly the records' yields; per-tonne figures are in range; growth stages add up; yield rows are ordered; every cited source exists; the Parquet twins equal the originals. These are consistency checks. They do not independently re-verify the research.

Known limits:

  • PARTIAL: no yields for tea (FAOSTAT counts green leaf, the per-tonne figures are made tea); no growth stages for tobacco, coffee and tea; no uptake for dry beans and tobacco.
  • Millet and groundnut yields are FAOSTAT's all-millets and in-shell figures.
  • FAO 56's arid sorghum row prints 140 days, but its stages add up to 130; 130 is used and noted.
  • Several growth-stage rows are not African (millet, soybean, sunflower, potato, cotton, beans).
  • Local crop names and attainable yields are not covered yet.

Credits

Created by XexFlare. See also Xexin.app. Repository: gitlab.com/xexflare/cropx.

License

CropX is licensed under CC BY 4.0: free to share and adapt, including commercially, with attribution ("CropX v1.0.0"). Facts remain attributable to their original sources, which keep their own terms.

Citation

@misc{cropx_2026,
  title  = {CropX: an open, source-cited dataset of crop nutrient needs, growth stages and yields},
  author = {{XexFlare}},
  year   = {2026},
  note   = {Version 1.0.0, generated 2026-11-17},
  url    = {https://huggingface.co/datasets/xexflare/cropx}
}

Changelog

See CHANGELOG.md. 1.0.0 (generated 2026-11-17): first release, 17 crops, 172 yield rows, 8 sources.

Downloads last month
59