Olaroti commited on
Commit
d5723af
·
verified ·
1 Parent(s): c05fea2

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +94 -99
README.md CHANGED
@@ -5,87 +5,69 @@ language:
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
- - time-series-forecasting
9
  multilinguality: monolingual
10
  size_categories:
11
  - 10K<n<100K
12
  tags:
13
- - tabular
14
- - africa
15
- - faostat-(fao)
16
- - land,-inputs-and-sustainability
17
- - faostat
18
- - fao
19
- - agriculture
20
- - food-security
21
- - time-series
22
- pretty_name: "Fertilizers by Product — Import quantity | Africa (FAOSTAT)"
 
 
 
 
 
 
 
23
  ---
24
 
25
- # Fertilizers by Product — Import quantity | Africa (FAOSTAT)
26
 
27
- 🌍 **16,832 observations** · **54 Africa countries** · **2002–2023** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
28
 
29
- ![rows](https://img.shields.io/badge/rows-16,832-blue) ![countries](https://img.shields.io/badge/countries-54-green) ![years](https://img.shields.io/badge/years-2002–2023-orange) ![indicators](https://img.shields.io/badge/indicators-22-purple) ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
 
 
 
30
 
31
  ## TL;DR
32
 
33
- This dataset contains **16,832 observations** of `Land, Inputs and Sustainability` data across **54 Africa countries**, spanning **2002–2023**, covering **22 distinct indicators**.
34
-
35
- ## About the source
36
-
37
- - **Source:** [FAOSTAT (FAO)](https://www.fao.org/faostat/en/#data/RFB)
38
- - **Publisher:** Food and Agriculture Organization of the United Nations (FAO)
39
- - **License:** [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)
40
- - **Topic:** Land, Inputs and Sustainability
41
-
42
- ## Geographic coverage
43
-
44
- 54 Africa countries · top rows shown below, sorted by row count:
45
-
46
- | Country | Rows | First year | Last year |
47
- |---------|-----:|-----------:|----------:|
48
- | `South Africa` | 454 | 2002 | 2023 |
49
- | `Angola` | 451 | 2002 | 2023 |
50
- | `Botswana` | 451 | 2002 | 2023 |
51
- | `Zambia` | 450 | 2002 | 2023 |
52
- | `Zimbabwe` | 446 | 2002 | 2023 |
53
- | `Morocco` | 444 | 2002 | 2023 |
54
- | `Eswatini` | 441 | 2002 | 2023 |
55
- | `Namibia` | 440 | 2002 | 2023 |
56
- | `United Republic of Tanzania` | 436 | 2002 | 2023 |
57
- | `Uganda` | 429 | 2002 | 2023 |
58
- | `Mozambique` | 426 | 2002 | 2023 |
59
- | `Ethiopia` | 426 | 2002 | 2023 |
60
- | `Algeria` | 419 | 2002 | 2023 |
61
- | `Malawi` | 419 | 2002 | 2023 |
62
- | `Tunisia` | 415 | 2002 | 2023 |
63
- | ... | _39 more countries_ | | |
64
-
65
- ## Indicators (sample)
66
-
67
- - `Other nitrogenous fertilizers, n.e.c.`
68
- - `Fertilizers n.e.c.`
69
- - `NPK fertilizers`
70
- - `Urea`
71
- - `Ammonium nitrate (AN)`
72
- - `Potassium chloride (muriate of potash) (MOP)`
73
- - `Ammonium sulphate`
74
- - `Ammonia, anhydrous`
75
- - `Other potassic fertilizers, n.e.c.`
76
- - `Other NP compounds`
77
-
78
- ## Schema
79
-
80
- | Column | Type | Description | Example |
81
- |--------|------|-------------|---------|
82
- | `country_name` | `string` | — | `Algeria` |
83
- | `country_m49` | `int64` | — | `12` |
84
- | `item` | `string` | — | `Ammonia, anhydrous` |
85
- | `year` | `int64` | — | `2002` |
86
- | `value` | `float64` | — | `1.12` |
87
- | `unit` | `string` | — | `t` |
88
- | `flag` | `string` | — | `A` |
89
 
90
  ## Usage
91
 
@@ -93,57 +75,70 @@ This dataset contains **16,832 observations** of `Land, Inputs and Sustainabilit
93
  from datasets import load_dataset
94
 
95
  ds = load_dataset("electricsheepafrica/africa-fertilizers-by-product-import-quantity")
96
- df = ds["train"].to_pandas()
97
- print(df.head())
 
 
 
 
98
  ```
99
 
100
- ### Filter to one country
101
 
102
  ```python
103
- kenya = df[df["country_name"] == "KEN"]
 
 
 
 
 
104
  ```
105
 
106
- ### Time-series for a single indicator
107
 
108
- ```python
109
- sample = (df[df["item"] == "Ammonia, anhydrous"]
110
- .sort_values("year"))
111
- sample.plot(x="year", y="value", title="Ammonia, anhydrous")
112
- ```
113
 
114
- ### Pivot to country × year matrix
115
 
116
- ```python
117
- matrix = (df[df["item"] == "Ammonia, anhydrous"]
118
- .pivot_table(index="year", columns="country_name", values="value"))
119
- print(matrix.tail())
120
- ```
 
 
 
 
 
 
 
121
 
122
  ## Citation
123
 
124
  ```bibtex
125
- @misc{africa_fertilizers_by_product_import_quantity_2023,
126
- title = {Fertilizers by Product — Import quantity | Africa (FAOSTAT)},
127
- author = {Food and Agriculture Organization of the United Nations (FAO)},
128
- year = {2023},
129
- url = {https://www.fao.org/faostat/en/#data/RFB},
130
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
131
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity}}
132
  }
133
  ```
134
 
135
  ## License
136
 
137
- Released under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/).
138
-
139
- Original data © Food and Agriculture Organization of the United Nations (FAO). When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.
140
 
141
- ## About Electric Sheep
142
 
143
- Electric Sheep Africa is part of the Electric Sheep mission: a unified, ML-ready data layer for Africa on HuggingFace. We pull data from authoritative open sources, normalize the schemas, package as Parquet, and publish with consistent dataset cards so researchers and developers can use `load_dataset()` to start working in seconds.
144
 
145
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
146
 
147
  ---
148
 
149
- _Provenance: ingested 2026-06-17 via the Electric Sheep pipeline. Source URL: https://www.fao.org/faostat/en/#data/RFB_
 
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
 
8
  multilinguality: monolingual
9
  size_categories:
10
  - 10K<n<100K
11
  tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "agriculture-food"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "faostat-fao"
21
+ - "land-inputs-and-sustainability"
22
+ - "faostat"
23
+ - "fao"
24
+ - "agriculture"
25
+ - "food-security"
26
+ - "time-series"
27
+ - "food"
28
+ pretty_name: "Fertilizers by Product — Import quantity | Africa (FAOSTAT) | Africa (Electric Sheep Africa metadata inventory)"
29
  ---
30
 
31
+ # Fertilizers by Product — Import quantity | Africa (FAOSTAT) | Africa (Electric Sheep Africa metadata inventory)
32
 
33
+ **Size category:** `10K<n<100K` - **Formats:** `parquet` - **Sector:** agriculture_food - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
34
 
35
+ ![size](https://img.shields.io/badge/size-10K%3Cn%3C100K-blue)
36
+ ![sector](https://img.shields.io/badge/sector-agriculture_food-green)
37
+ ![downloads](https://img.shields.io/badge/HF_downloads-32-orange)
38
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
39
 
40
  ## TL;DR
41
 
42
+ This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
43
+
44
+ ## What This Dataset Covers
45
+
46
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
47
+
48
+ Dataset context from the existing Hugging Face card: Fertilizers by Product — Import quantity | Africa (FAOSTAT) 🌍 16,832 observations · 54 Africa countries · 2002–2023 · Repackaged by Electric Sheep Africa TL;DR This dataset contains 16,832 observations of Land, Inputs and Sustainability data across 54 Africa countries, spanning 2002–2023, covering 22 distinct indicators. About the source Source: FAOSTAT (FAO) Publisher: Food and Agriculture Organization of the United Nations (FAO) License:… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity.
49
+
50
+ ## Dataset Profile
51
+
52
+ | Field | Value |
53
+ |---|---|
54
+ | Hugging Face repo | [`electricsheepafrica/africa-fertilizers-by-product-import-quantity`](https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity) |
55
+ | Sector | agriculture_food |
56
+ | Topic tags | tabular, faostat-(fao), land,-inputs-and-sustainability, faostat, fao, agriculture, food-security, time-series |
57
+ | Modalities | `tabular`, `text` |
58
+ | Formats | `parquet` |
59
+ | Size category | `10K<n<100K` |
60
+ | Countries | Africa-wide or source-defined African coverage |
61
+ | ISO3 coverage | `not declared` |
62
+ | Last modified on HF | `2026-06-17 13:23:13+00:00` |
63
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
64
+
65
+ ## How To Read This Dataset
66
+
67
+ - Start from the repository files and the dataset viewer when available.
68
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
69
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
70
+ - Preserve missing values until you have a defensible imputation rule.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  ## Usage
73
 
 
75
  from datasets import load_dataset
76
 
77
  ds = load_dataset("electricsheepafrica/africa-fertilizers-by-product-import-quantity")
78
+ print(ds)
79
+
80
+ split_name = next(iter(ds))
81
+ table = ds[split_name]
82
+ print(table.features)
83
+ print(table[:3])
84
  ```
85
 
86
+ ### Convert To Pandas When Tabular
87
 
88
  ```python
89
+ from datasets import Dataset
90
+
91
+ first_split = ds[next(iter(ds))]
92
+ if isinstance(first_split, Dataset):
93
+ df = first_split.to_pandas()
94
+ print(df.head())
95
  ```
96
 
97
+ ## Data Quality Notes
98
 
99
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
100
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
101
+ - Metadata gaps from the inventory: country, upstream_publisher.
102
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
 
103
 
104
+ ## Source And Provenance
105
 
106
+ - **Source context:** Electric Sheep Africa metadata inventory
107
+ - **Publisher/source attribution:** Public dataset metadata
108
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
109
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity](https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity)
110
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
111
+
112
+ ## Suggested Analyses
113
+
114
+ - Inspect schema and missingness before modeling.
115
+ - Profile variables by geography, time, and subgroup columns where present.
116
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
117
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
118
 
119
  ## Citation
120
 
121
  ```bibtex
122
+ @misc{electric_sheep_africa_africa_fertilizers_by_product_import_quantity_2026,
123
+ title = {Fertilizers by Product — Import quantity | Africa (FAOSTAT) | Africa (Electric Sheep Africa metadata inventory)},
124
+ author = {Public dataset metadata},
125
+ year = {2026},
126
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity},
127
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
128
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-fertilizers-by-product-import-quantity}}
129
  }
130
  ```
131
 
132
  ## License
133
 
134
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
 
 
135
 
136
+ Original source rights remain with the original publisher or data provider. Electric Sheep Africa engineering standardizes discovery metadata, documentation, and usage guidance for analysis on Hugging Face.
137
 
138
+ ## About Electric Sheep Africa
139
 
140
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
141
 
142
  ---
143
 
144
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.