Olaroti commited on
Commit
e2aadd1
·
verified ·
1 Parent(s): df518be

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +94 -98
README.md CHANGED
@@ -5,86 +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
- - macro-economic-indicators
17
- - faostat
18
- - fao
19
- - agriculture
20
- - food-security
21
- - time-series
22
- pretty_name: "Macro Indicators — Annual growth US$ | Africa (FAOSTAT)"
 
 
 
 
 
 
 
23
  ---
24
 
25
- # Macro Indicators — Annual growth US$ | Africa (FAOSTAT)
26
 
27
- 🌍 **14,417 observations** · **54 Africa countries** · **1971–2024** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
28
 
29
- ![rows](https://img.shields.io/badge/rows-14,417-blue) ![countries](https://img.shields.io/badge/countries-54-green) ![years](https://img.shields.io/badge/years-1971–2024-orange) ![indicators](https://img.shields.io/badge/indicators-9-purple) ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
 
 
 
30
 
31
  ## TL;DR
32
 
33
- This dataset contains **14,417 observations** of `Macro-Economic Indicators` data across **54 Africa countries**, spanning **1971–2024**, covering **9 distinct indicators**.
34
-
35
- ## About the source
36
-
37
- - **Source:** [FAOSTAT (FAO)](https://www.fao.org/faostat/en/#data/MK)
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:** Macro-Economic Indicators
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
- | `Kenya` | 351 | 1971 | 2024 |
49
- | `Mauritius` | 318 | 1971 | 2024 |
50
- | `Botswana` | 316 | 1971 | 2024 |
51
- | `South Africa` | 302 | 1971 | 2024 |
52
- | `Mozambique` | 300 | 1971 | 2024 |
53
- | `Cameroon` | 297 | 1971 | 2024 |
54
- | `Eswatini` | 290 | 1971 | 2024 |
55
- | `Namibia` | 288 | 1971 | 2024 |
56
- | `Rwanda` | 287 | 1971 | 2024 |
57
- | `United Republic of Tanzania` | 286 | 1971 | 2024 |
58
- | `Burkina Faso` | 285 | 1971 | 2024 |
59
- | `Burundi` | 284 | 1971 | 2024 |
60
- | `Lesotho` | 283 | 1971 | 2024 |
61
- | `Tunisia` | 283 | 1971 | 2024 |
62
- | `Uganda` | 282 | 1971 | 2024 |
63
- | ... | _39 more countries_ | | |
64
-
65
- ## Indicators (sample)
66
-
67
- - `Gross Domestic Product`
68
- - `Gross Fixed Capital Formation`
69
- - `Value Added (Agriculture, Forestry and Fishing)`
70
- - `Value Added (Total Manufacturing)`
71
- - `Gross National Income`
72
- - `Value Added (Agriculture)`
73
- - `Value Added (Manufacture of food, beverages and tobacco products)`
74
- - `Value Added (Manufacture of food and beverages)`
75
- - `Value Added (Manufacture of tobacco products)`
76
-
77
- ## Schema
78
-
79
- | Column | Type | Description | Example |
80
- |--------|------|-------------|---------|
81
- | `country_name` | `string` | — | `Algeria` |
82
- | `country_m49` | `int64` | — | `12` |
83
- | `item` | `string` | — | `Gross Domestic Product` |
84
- | `year` | `int64` | — | `1971` |
85
- | `value` | `float64` | — | `4.045599` |
86
- | `unit` | `string` | — | `%` |
87
- | `flag` | `string` | — | `X` |
88
 
89
  ## Usage
90
 
@@ -92,57 +75,70 @@ This dataset contains **14,417 observations** of `Macro-Economic Indicators` dat
92
  from datasets import load_dataset
93
 
94
  ds = load_dataset("electricsheepafrica/africa-macro-indicators-annual-growth-us")
95
- df = ds["train"].to_pandas()
96
- print(df.head())
 
 
 
 
97
  ```
98
 
99
- ### Filter to one country
100
 
101
  ```python
102
- kenya = df[df["country_name"] == "KEN"]
 
 
 
 
 
103
  ```
104
 
105
- ### Time-series for a single indicator
106
 
107
- ```python
108
- sample = (df[df["item"] == "Gross Domestic Product"]
109
- .sort_values("year"))
110
- sample.plot(x="year", y="value", title="Gross Domestic Product")
111
- ```
112
 
113
- ### Pivot to country × year matrix
114
 
115
- ```python
116
- matrix = (df[df["item"] == "Gross Domestic Product"]
117
- .pivot_table(index="year", columns="country_name", values="value"))
118
- print(matrix.tail())
119
- ```
 
 
 
 
 
 
 
120
 
121
  ## Citation
122
 
123
  ```bibtex
124
- @misc{africa_macro_indicators_annual_growth_us_2024,
125
- title = {Macro Indicators — Annual growth US$ | Africa (FAOSTAT)},
126
- author = {Food and Agriculture Organization of the United Nations (FAO)},
127
- year = {2024},
128
- url = {https://www.fao.org/faostat/en/#data/MK},
129
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
130
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-macro-indicators-annual-growth-us}}
131
  }
132
  ```
133
 
134
  ## License
135
 
136
- Released under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/).
137
-
138
- 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.
139
 
140
- ## About Electric Sheep
141
 
142
- 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.
143
 
144
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
145
 
146
  ---
147
 
148
- _Provenance: ingested 2026-06-17 via the Electric Sheep pipeline. Source URL: https://www.fao.org/faostat/en/#data/MK_
 
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
+ - "macro-economic-indicators"
22
+ - "faostat"
23
+ - "fao"
24
+ - "agriculture"
25
+ - "food-security"
26
+ - "time-series"
27
+ - "food"
28
+ pretty_name: "Macro Indicators — Annual growth US$ | Africa (FAOSTAT) | Africa (Electric Sheep Africa metadata inventory)"
29
  ---
30
 
31
+ # Macro Indicators — Annual growth US$ | 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-36-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: Macro Indicators — Annual growth US$ | Africa (FAOSTAT) 🌍 14,417 observations · 54 Africa countries · 1971–2024 · Repackaged by Electric Sheep Africa TL;DR This dataset contains 14,417 observations of Macro-Economic Indicators data across 54 Africa countries, spanning 1971–2024, covering 9 distinct indicators. About the source Source: FAOSTAT (FAO) Publisher: Food and Agriculture Organization of the United Nations (FAO) License: cc-by-4.0… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-macro-indicators-annual-growth-us.
49
+
50
+ ## Dataset Profile
51
+
52
+ | Field | Value |
53
+ |---|---|
54
+ | Hugging Face repo | [`electricsheepafrica/africa-macro-indicators-annual-growth-us`](https://huggingface.co/datasets/electricsheepafrica/africa-macro-indicators-annual-growth-us) |
55
+ | Sector | agriculture_food |
56
+ | Topic tags | tabular, faostat-(fao), macro-economic-indicators, 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:25:43+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-macro-indicators-annual-growth-us")
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-macro-indicators-annual-growth-us](https://huggingface.co/datasets/electricsheepafrica/africa-macro-indicators-annual-growth-us)
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_macro_indicators_annual_growth_us_2026,
123
+ title = {Macro Indicators — Annual growth US$ | Africa (FAOSTAT) | Africa (Electric Sheep Africa metadata inventory)},
124
+ author = {Public dataset metadata},
125
+ year = {2026},
126
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-macro-indicators-annual-growth-us},
127
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
128
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-macro-indicators-annual-growth-us}}
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`.