Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,34 +1,149 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
num_bytes: 261394
|
| 24 |
-
num_examples: 3367
|
| 25 |
-
download_size: 155400
|
| 26 |
-
dataset_size: 1277905
|
| 27 |
-
configs:
|
| 28 |
-
- config_name: default
|
| 29 |
-
data_files:
|
| 30 |
-
- split: train
|
| 31 |
-
path: data/train-*
|
| 32 |
-
- split: test
|
| 33 |
-
path: data/test-*
|
| 34 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 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 |
+
    
|
| 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 |
+
|
| 92 |
+
```python
|
| 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_
|