Olaroti commited on
Commit
ec9afc2
·
verified ·
1 Parent(s): fb0644f

Add ML-ready official indicator dataset

Browse files
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - tabular-regression
7
+ - time-series-forecasting
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - 1K<n<10K
11
+ tags:
12
+ - tabular
13
+ - xlsx
14
+ - africa
15
+ - tanzania
16
+ - official-statistics
17
+ - open-data
18
+ pretty_name: "National Bureau of Statistics | Africa (Tanzania official open data)"
19
+ ---
20
+
21
+ # National Bureau of Statistics | Africa (Tanzania official open data)
22
+
23
+ 1,774 rows - 1 Africa country - 2014-2025 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
24
+
25
+ ![rows](https://img.shields.io/badge/rows-1774-blue)
26
+ ![countries](https://img.shields.io/badge/countries-1-green)
27
+ ![years](https://img.shields.io/badge/years-2014-2025-orange)
28
+ ![indicators](https://img.shields.io/badge/indicators-23-purple)
29
+ ![license](https://img.shields.io/badge/license-other-lightgrey)
30
+
31
+ ## TL;DR
32
+
33
+ This dataset packages one official `XLSX` resource from **Tanzania** as
34
+ ML-ready Parquet. The source file is the provenance boundary; all usable
35
+ indicators or tabular columns from the resource stay together in this repo.
36
+
37
+ ## About the source
38
+
39
+ - **Source:** [National Bureau of Statistics](https://www.nbs.go.tz/statistics/topic/gross-domestic-product-gdp)
40
+ - **Publisher:** National Bureau of Statistics, Tanzania
41
+ - **Resource:** [The Fourth Quarter GDP 2025 (Excel)](https://www.nbs.go.tz/uploads/statistics/documents/en-1784021208-Excel Q4_2025_Eng.xlsx)
42
+ - **Format:** `XLSX`
43
+ - **License:** [Other open license]()
44
+ - **Packaging mode:** `indicator_long`
45
+
46
+ ## Geographic coverage
47
+
48
+ 1 Africa country:
49
+
50
+ | Country | Rows | First year | Last year | Name |
51
+ |---------|-----:|-----------:|----------:|------|
52
+ | `TZA` | 1,774 | 2014 | 2025 | `Tanzania` |
53
+
54
+ ## Indicators or Resource Contents
55
+
56
+ - `national-bureau-of-statistics-quarter-e02f7784` - National Bureau of Statistics - quarter
57
+ - `national-bureau-of-statistics-agriculture-37bc69f3` - National Bureau of Statistics - agriculture
58
+ - `national-bureau-of-statistics-mining-and-quarrying-7be55d60` - National Bureau of Statistics - mining and quarrying
59
+ - `national-bureau-of-statistics-manufacturing-acceeb2c` - National Bureau of Statistics - manufacturing
60
+ - `national-bureau-of-statistics-electricity-363944e1` - National Bureau of Statistics - electricity
61
+ - `national-bureau-of-statistics-water-82316510` - National Bureau of Statistics - water
62
+ - `national-bureau-of-statistics-construction-906dd05d` - National Bureau of Statistics - construction
63
+ - `national-bureau-of-statistics-trade-and-repair-978013d5` - National Bureau of Statistics - trade and repair
64
+ - `national-bureau-of-statistics-accommodation-restaurant-6846181f` - National Bureau of Statistics - accommodation restaurant
65
+ - `national-bureau-of-statistics-transport-and-storage-8578d7b2` - National Bureau of Statistics - transport and storage
66
+ - `national-bureau-of-statistics-information-and-communication-0639967e` - National Bureau of Statistics - information and communication
67
+ - `national-bureau-of-statistics-financial-insurance-a117c58e` - National Bureau of Statistics - financial insurance
68
+ - `national-bureau-of-statistics-qublic-administration-38f4d596` - National Bureau of Statistics - qublic administration
69
+ - `national-bureau-of-statistics-qrofessional-scientific-technical-act-f5b3a07d` - National Bureau of Statistics - qrofessional scientific technical act
70
+ - `national-bureau-of-statistics-administrative-support-services-8f4493dc` - National Bureau of Statistics - administrative support services
71
+ - `national-bureau-of-statistics-real-estate-010f2f6f` - National Bureau of Statistics - real estate
72
+ - `national-bureau-of-statistics-education-3c1af329` - National Bureau of Statistics - education
73
+ - `national-bureau-of-statistics-health-5fb67caf` - National Bureau of Statistics - health
74
+ - `national-bureau-of-statistics-arts-entertainmen-recreation-498ca083` - National Bureau of Statistics - arts entertainmen recreation
75
+ - `national-bureau-of-statistics-other-services-074f453c` - National Bureau of Statistics - other services
76
+
77
+ ## Schema
78
+
79
+ | Column | Type | Description | Example |
80
+ |--------|------|-------------|---------|
81
+ | `indicator_id` | `string` | Stable indicator identifier. | `national-bureau-of-statistics-quarter-e02f7784` |
82
+ | `indicator_name` | `string` | Human-readable indicator name. | `National Bureau of Statistics - quarter` |
83
+ | `country_iso3` | `string` | ISO3 country code. | `TZA` |
84
+ | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `TABLES 1-4` |
85
+ | `country_name` | `string` | Country name. | `Tanzania` |
86
+ | `year` | `Int64` | Observation year. | `2014` |
87
+ | `value` | `float64` | Numeric observation value. | `1.0` |
88
+ | `unit` | `string` | Measurement unit, when available. | `source_units_unspecified` |
89
+ | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2025` |
90
+ | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2026` |
91
+ | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `2025-2026` |
92
+ | `source_provider` | `string` | Publishing organization. | `National Bureau of Statistics, Tanzania` |
93
+ | `source_dataset` | `string` | Source package title. | `National Bureau of Statistics` |
94
+ | `source_resource` | `string` | Source resource title. | `The Fourth Quarter GDP 2025 (Excel)` |
95
+ | `source_package_id` | `string` | CKAN package UUID. | `gross-domestic-product-gdp` |
96
+ | `source_resource_id` | `string` | CKAN resource UUID. | `nbs-stat-d54b8cbc0f3570` |
97
+ | `source_url` | `string` | Original source resource URL. | `https://www.nbs.go.tz/uploads/statistics/documents/en-1784021208-Excel Q` |
98
+ | `license_id` | `string` | Source license identifier. | `other-open` |
99
+ | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-21T20:19:26Z` |
100
+
101
+ ## Usage
102
+
103
+ ```python
104
+ from datasets import load_dataset
105
+
106
+ ds = load_dataset("electricsheepafrica/africa-tanzania-national-bureau-of-statistics-95e551fd")
107
+ df = ds["train"].to_pandas()
108
+ print(df.head())
109
+ ```
110
+
111
+ ### Filter to one country
112
+
113
+ ```python
114
+ sample_country = df[df["country_iso3"] == "TZA"]
115
+ ```
116
+
117
+ ### Work with indicators
118
+
119
+ ```python
120
+ if "indicator_id" in df.columns:
121
+ print(df["indicator_id"].value_counts().head())
122
+ sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
123
+ ```
124
+
125
+ ## Citation
126
+
127
+ ```bibtex
128
+ @misc{electric_sheep_africa_africa_tanzania_national_bureau_of_statistics_95e551fd_2025,
129
+ title = {National Bureau of Statistics | Africa (Tanzania official open data)},
130
+ author = {National Bureau of Statistics, Tanzania},
131
+ year = {2025},
132
+ url = {https://www.nbs.go.tz/statistics/topic/gross-domestic-product-gdp},
133
+ publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
134
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-tanzania-national-bureau-of-statistics-95e551fd}}
135
+ }
136
+ ```
137
+
138
+ ## License
139
+
140
+ Released under [Other open license]().
141
+
142
+ Original data (c) National Bureau of Statistics, Tanzania. When using this dataset, please cite both the
143
+ original source above and the Electric Sheep Africa repackaging.
144
+
145
+ ## About Electric Sheep
146
+
147
+ Electric Sheep Africa is part of the Electric Sheep mission: a unified,
148
+ ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
149
+ open sources, normalize the schemas, package as Parquet, and publish with
150
+ consistent dataset cards so researchers and developers can use `load_dataset()`
151
+ to start working in seconds.
152
+
153
+ Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
154
+
155
+ ---
156
+
157
+ Provenance: ingested 2026-07-21 via the Electric Sheep pipeline. Source URL:
158
+ https://www.nbs.go.tz/uploads/statistics/documents/en-1784021208-Excel Q4_2025_Eng.xlsx
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cc23989471310b43f8a0c750d03e3aa026529aa29150a5bdf718d17098ab4c0
3
+ size 30132
metadata/source_snapshot.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "columns": [
3
+ "indicator_id",
4
+ "indicator_name",
5
+ "country_iso3",
6
+ "source_sheet",
7
+ "country_name",
8
+ "year",
9
+ "value",
10
+ "unit",
11
+ "source_period_start_year",
12
+ "source_period_end_year",
13
+ "source_period_label",
14
+ "source_provider",
15
+ "source_dataset",
16
+ "source_resource",
17
+ "source_package_id",
18
+ "source_resource_id",
19
+ "source_url",
20
+ "license_id",
21
+ "retrieved_at"
22
+ ],
23
+ "generated_at": "2026-07-21T20:21:20Z",
24
+ "indicator_count": 23,
25
+ "mode": "indicator_long",
26
+ "repo_id": "electricsheepafrica/africa-tanzania-national-bureau-of-statistics-95e551fd",
27
+ "rows": 1774,
28
+ "source": {
29
+ "api_base_url": "https://www.nbs.go.tz/statistics",
30
+ "country_iso3": "TZA",
31
+ "country_name": "Tanzania",
32
+ "group_names": "National Accounts Statistics; National Bureau of Statistics; en-1784021208-Excel Q4_2025_Eng.xlsx; 2026-03-27",
33
+ "license_id": "other-open",
34
+ "license_title": "Public NBS statistics download",
35
+ "license_url": "https://www.nbs.go.tz/statistics/topic/gross-domestic-product-gdp",
36
+ "organization_title": "National Bureau of Statistics, Tanzania",
37
+ "package_id": "gross-domestic-product-gdp",
38
+ "package_name": "gross-domestic-product-gdp",
39
+ "package_notes": "Public statistics downloads from the Tanzania NBS topic page: National Bureau of Statistics",
40
+ "package_page_url": "https://www.nbs.go.tz/statistics/topic/gross-domestic-product-gdp",
41
+ "package_title": "National Bureau of Statistics",
42
+ "package_type": "statistics-topic",
43
+ "portal_title": "National Bureau of Statistics Tanzania",
44
+ "portal_url": "https://www.nbs.go.tz",
45
+ "resource_created": "2026-03-27",
46
+ "resource_description": "27 March, 2026 The Fourth Quarter GDP 2025 (Excel)",
47
+ "resource_filename": "en-1784021208-Excel Q4_2025_Eng.xlsx",
48
+ "resource_format": "XLSX",
49
+ "resource_id": "nbs-stat-d54b8cbc0f3570",
50
+ "resource_last_modified": "2026-03-27",
51
+ "resource_mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
52
+ "resource_name": "The Fourth Quarter GDP 2025 (Excel)",
53
+ "resource_position": "0",
54
+ "resource_url": "https://www.nbs.go.tz/uploads/statistics/documents/en-1784021208-Excel Q4_2025_Eng.xlsx",
55
+ "source_catalog_id": "gross-domestic-product-gdp",
56
+ "source_idno": "gross-domestic-product-gdp",
57
+ "source_total_downloads": "",
58
+ "source_total_views": "",
59
+ "tag_names": "nbs; official-statistics; public-download; xlsx; National Accounts Statistics; National Bureau of Statistics"
60
+ },
61
+ "year_max": 2025,
62
+ "year_min": 2014
63
+ }