fertx / README.md
xexflare's picture
FertX v1.0.0
4fc38d5 verified
|
Raw History Blame Contribute Delete
7.38 kB
metadata
pretty_name: FertX
language:
  - en
license: cc-by-4.0
size_categories:
  - n<1K
tags:
  - agriculture
  - fertilizer
  - africa
  - crop-nutrition
  - soil-fertility
  - provenance
configs:
  - config_name: default
    default: true
    data_files:
      - split: train
        path: data/fertx.parquet
  - config_name: full
    data_files:
      - split: train
        path: data/fertx_full.parquet
  - config_name: sources
    data_files:
      - split: train
        path: data/sources.parquet

FertX: an open dataset of fertilizer products (v1.0.0)

FertX describes the fertilizers farmers buy: the label grade and full composition (N, P2O5, K2O, S, Ca, Mg, Zn, B), chloride content and potash source, whether the product goes on at planting or as top dressing, and the African countries it is sold in. Every value carries its source and a confidence level.

Dataset version 1.0.0
Generated 2026-11-17
Release package prepared 2026-11-18
Records 27 products: 22 VERIFIED, 5 PARTIAL
Categories nitrogen 4, phosphate 3, potash 2, NP compound 7, NK compound 1, NPK compound 8, secondary nutrient 2
Source register 24 sources
License CC BY 4.0

Standard or published grades, not a guarantee for any bag. Labels vary by manufacturer and batch, and the same regional name can mean different grades in different countries (Compound D is 10-20-10+6S in Zambia and 8-14-7 in Zimbabwe). Always read the label of the product you buy. Prices are not included.

Configurations and files

Config File Rows Use it for
default data/fertx.parquet 27 Flat table (25 columns) for pandas, Polars and DuckDB.
full data/fertx_full.parquet 27 Same records plus the nested fields_detail (value, confidence, sources and notes per field) and structured markets.
sources data/sources.parquet 24 The source register that source_ids point to.

The full and sources Parquet files are lossless conversions of data/fertx.jsonl and data/sources.csv; the release validation checks them value by value against the originals. The originals are included too: data/fertx.jsonl, data/fertx.json (with a metadata envelope), data/fertx.csv, data/sources.csv and data/SHA256SUMS.

Loading

from datasets import load_dataset

products = load_dataset("xexflare/fertx", split="train")
full = load_dataset("xexflare/fertx", "full", split="train")
basal = products.filter(lambda r: r["role"] == "basal")
import pandas as pd

df = pd.read_parquet("hf://datasets/xexflare/fertx/data/fertx.parquet")
malawi = df[df["markets"].str.contains("Malawi", na=False)][["id", "grade", "role"]]

Intended use

  • Fertilizer and farm-budget calculators: how many bags of a product supply a crop's N, P and K.
  • Comparing the blends sold in different countries on one label basis.
  • Teaching: what each product contains, and why tobacco growers avoid chloride.

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

Schema

Identity: id (stable, e.g. npk-23-21-0-4s), name, other_names, category, grade (label grade built from the nutrients, e.g. 23-21-0+4S).

Composition (percent by weight): n_pct, p2o5_pct, k2o_pct (oxide basis, as on the label), s_pct, ca_pct, mg_pct, zn_pct, b_pct (elements), chloride_pct.

Product: chemical_formula, nitrogen_forms, potash_source, water_solubility_g_l, solution_ph, role (basal, top_dressing, either; only where a source says so).

Markets: markets, a list of { country, use, source_ids } (countries joined with ; in CSV).

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, or definitional (a chemical formula).
STRONG Two sources agree.
SUPPORTED One source, or a value derived from a stated one (Ca from CaO or CaCO3).
(empty) Classifying fields such as name and category.

Where a source gives a range, the value is its lower end and the range is in the notes.

Collection methodology

  1. Each product is one research file with a table of fields (value, confidence, source, notes) and a table of markets (country, use, source).
  2. Straight fertilizers come from the IPNI Nutrient Source Specifics fact sheets (written by the International Plant Nutrition Institute; hosted by Fertilizer Australia since IPNI closed in 2019). Regional blends come from FAO, IFDC, national seed company guides and the press.
  3. The build checks that nutrient percentages are in range and add up to 100% or less, that each category matches the N, P2O5 and K2O present, and that every value and market cites a registered source. The research files themselves are not published.

Source attribution

data/sources.csv lists the 24 registered sources: 13 IPNI fact sheets, an Incitec Pivot CAN fact sheet, two FAO chapters on Zimbabwe, IFDC's Kenya market survey and Ethiopia statistics, three Seed Co guides (Malawi and Zambia), NC State Extension on tobacco and chloride, a Malawi newspaper and a third-party copy of Tanzania's fertilizer register. Facts remain attributable to their original publishers; each source keeps its own terms.

Validation and known limits

Automated validation passes: record counts match in every format; ids and grades are unique; JSON and JSONL are deep-equal; every CSV and Parquet value matches the JSON; nutrient percentages are in range and add up to 100% or less; categories match N-P-K; every cited source exists; the full and sources Parquet files equal the originals. These are consistency checks. They do not independently re-verify the research.

Known limits:

  • PARTIAL: Malawi 23:10:5+6S+1Zn and the two Minjingu products (one press or third-party source each); Zambia's Compound D and NPK 17:17:17 (potash source unknown).
  • The Zimbabwe compounds come from an older FAO table; current labels may differ.
  • role is filled for 13 products; the rest have no source yet.
  • Not covered yet: compost and manure, NPK 15-15-15, calcium nitrate, bag sizes.

Credits

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

License

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

Citation

@misc{fertx_2026,
  title  = {FertX: an open, source-cited dataset of fertilizer products},
  author = {{XexFlare}},
  year   = {2026},
  note   = {Version 1.0.0, generated 2026-11-17},
  url    = {https://huggingface.co/datasets/xexflare/fertx}
}

Changelog

See CHANGELOG.md. 1.0.0 (generated 2026-11-17): first release, 27 products, 24 sources, CSV/JSON/JSONL/Parquet.