Olaroti commited on
Commit
788dafa
·
verified ·
1 Parent(s): 479086a

Add ML-ready official indicator dataset

Browse files
README.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - xls
14
+ - africa
15
+ - tanzania
16
+ - official-statistics
17
+ - open-data
18
+ - energy
19
+ - tourism
20
+ - health
21
+ - population
22
+ - economics
23
+ pretty_name: "National Bureau of Statistics | Africa (Tanzania official open data)"
24
+ ---
25
+
26
+ # National Bureau of Statistics | Africa (Tanzania official open data)
27
+
28
+ 2,554 rows - 1 Africa country - 2020-2026 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
29
+
30
+ ![rows](https://img.shields.io/badge/rows-2554-blue)
31
+ ![countries](https://img.shields.io/badge/countries-1-green)
32
+ ![years](https://img.shields.io/badge/years-2020-2026-orange)
33
+ ![indicators](https://img.shields.io/badge/indicators-1-purple)
34
+ ![license](https://img.shields.io/badge/license-other-lightgrey)
35
+
36
+ ## TL;DR
37
+
38
+ This dataset packages one official `XLS` resource from **Tanzania** as
39
+ ML-ready Parquet. The source file is the provenance boundary; all usable
40
+ indicators or tabular columns from the resource stay together in this repo.
41
+
42
+ ## About the source
43
+
44
+ - **Source:** [National Bureau of Statistics](https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026)
45
+ - **Publisher:** National Bureau of Statistics, Tanzania
46
+ - **Resource:** [CPI Summary_042026](https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Summary_042026.xls)
47
+ - **Format:** `XLS`
48
+ - **License:** [Other open license]()
49
+ - **Packaging mode:** `indicator_long`
50
+
51
+ ## Geographic coverage
52
+
53
+ 1 Africa country:
54
+
55
+ | Country | Rows | First year | Last year | Name |
56
+ |---------|-----:|-----------:|----------:|------|
57
+ | `TZA` | 2,554 | 2020 | 2026 | `Tanzania` |
58
+
59
+ ## Indicators or Resource Contents
60
+
61
+ - `national-bureau-of-statistics-ec049201` - National Bureau of Statistics
62
+
63
+ ## Schema
64
+
65
+ | Column | Type | Description | Example |
66
+ |--------|------|-------------|---------|
67
+ | `indicator_id` | `string` | Stable indicator identifier. | `national-bureau-of-statistics-ec049201` |
68
+ | `indicator_name` | `string` | Human-readable indicator name. | `National Bureau of Statistics` |
69
+ | `country_iso3` | `string` | ISO3 country code. | `TZA` |
70
+ | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `2021_REBASED SERIES` |
71
+ | `country_name` | `string` | Country name. | `Tanzania` |
72
+ | `year` | `Int64` | Observation year. | `2020` |
73
+ | `value` | `float64` | Numeric observation value. | `3.152626042808304` |
74
+ | `unit` | `string` | Measurement unit, when available. | `source_units_unspecified` |
75
+ | `dimension_s_n` | `string` | Source dimension. | `` |
76
+ | `dimension_major_groups` | `string` | Source dimension. | `INFLATION RATE` |
77
+ | `dimension_weights` | `string` | Source dimension. | `` |
78
+ | `dimension_annual_average` | `string` | Source dimension. | `3.69101833278056` |
79
+ | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2026` |
80
+ | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2026` |
81
+ | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `2026` |
82
+ | `source_provider` | `string` | Publishing organization. | `National Bureau of Statistics, Tanzania` |
83
+ | `source_dataset` | `string` | Source package title. | `National Bureau of Statistics` |
84
+ | `source_resource` | `string` | Source resource title. | `CPI Summary_042026` |
85
+ | `source_package_id` | `string` | CKAN package UUID. | `consumer-price-index-2026` |
86
+ | `source_resource_id` | `string` | CKAN resource UUID. | `nbs-stat-05df611ea1cf0c` |
87
+ | `source_url` | `string` | Original source resource URL. | `https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Sum` |
88
+ | `license_id` | `string` | Source license identifier. | `other-open` |
89
+ | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-21T20:19:26Z` |
90
+
91
+ ## Usage
92
+
93
+ ```python
94
+ from datasets import load_dataset
95
+
96
+ ds = load_dataset("electricsheepafrica/africa-tanzania-national-bureau-of-statistics-ec049201")
97
+ df = ds["train"].to_pandas()
98
+ print(df.head())
99
+ ```
100
+
101
+ ### Filter to one country
102
+
103
+ ```python
104
+ sample_country = df[df["country_iso3"] == "TZA"]
105
+ ```
106
+
107
+ ### Work with indicators
108
+
109
+ ```python
110
+ if "indicator_id" in df.columns:
111
+ print(df["indicator_id"].value_counts().head())
112
+ sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
113
+ ```
114
+
115
+ ## Citation
116
+
117
+ ```bibtex
118
+ @misc{electric_sheep_africa_africa_tanzania_national_bureau_of_statistics_ec049201_2026,
119
+ title = {National Bureau of Statistics | Africa (Tanzania official open data)},
120
+ author = {National Bureau of Statistics, Tanzania},
121
+ year = {2026},
122
+ url = {https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026},
123
+ publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
124
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-tanzania-national-bureau-of-statistics-ec049201}}
125
+ }
126
+ ```
127
+
128
+ ## License
129
+
130
+ Released under [Other open license]().
131
+
132
+ Original data (c) National Bureau of Statistics, Tanzania. When using this dataset, please cite both the
133
+ original source above and the Electric Sheep Africa repackaging.
134
+
135
+ ## About Electric Sheep
136
+
137
+ Electric Sheep Africa is part of the Electric Sheep mission: a unified,
138
+ ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
139
+ open sources, normalize the schemas, package as Parquet, and publish with
140
+ consistent dataset cards so researchers and developers can use `load_dataset()`
141
+ to start working in seconds.
142
+
143
+ Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
144
+
145
+ ---
146
+
147
+ Provenance: ingested 2026-07-21 via the Electric Sheep pipeline. Source URL:
148
+ https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Summary_042026.xls
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d63a2c5259437bab0512a763e57b7ccfee09df6eaef2f98649fc1312c57c277f
3
+ size 40378
metadata/source_snapshot.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "dimension_s_n",
12
+ "dimension_major_groups",
13
+ "dimension_weights",
14
+ "dimension_annual_average",
15
+ "source_period_start_year",
16
+ "source_period_end_year",
17
+ "source_period_label",
18
+ "source_provider",
19
+ "source_dataset",
20
+ "source_resource",
21
+ "source_package_id",
22
+ "source_resource_id",
23
+ "source_url",
24
+ "license_id",
25
+ "retrieved_at"
26
+ ],
27
+ "generated_at": "2026-07-21T20:21:26Z",
28
+ "indicator_count": 1,
29
+ "mode": "indicator_long",
30
+ "repo_id": "electricsheepafrica/africa-tanzania-national-bureau-of-statistics-ec049201",
31
+ "rows": 2554,
32
+ "source": {
33
+ "api_base_url": "https://www.nbs.go.tz/statistics",
34
+ "country_iso3": "TZA",
35
+ "country_name": "Tanzania",
36
+ "group_names": "Energy Statistics; Advance Release Calendar; Crime Statistics; Agriculture Statistics; FinScope Survey Reports; Environmental Statistics; Gender Statistics; Financial Reports; High Frequency Data; Geographic Information System (GIS); Industrial and Construction Statistics; Health Statistics; Investment Statistics; National Accounts Statistics; Labour and Price Statistics; Hotel Statistics; Population and Housing Census; Poverty Indicators Statistics; Statistical Abstract; Tanzania in Figures; Tanzania Statistical Master Plan (TSMP); Statistical Business Register Statistics; Tax Statistics; Tourism Statistics; Trade and Transport Statistics; User Satisfaction Survey; National Bureau of Statistics; en-1778237591-CPI Summary_042026.xls; 2026-05-08",
37
+ "license_id": "other-open",
38
+ "license_title": "Public NBS statistics download",
39
+ "license_url": "https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026",
40
+ "organization_title": "National Bureau of Statistics, Tanzania",
41
+ "package_id": "consumer-price-index-2026",
42
+ "package_name": "consumer-price-index-2026",
43
+ "package_notes": "Public statistics downloads from the Tanzania NBS topic page: National Bureau of Statistics",
44
+ "package_page_url": "https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026",
45
+ "package_title": "National Bureau of Statistics",
46
+ "package_type": "statistics-topic",
47
+ "portal_title": "National Bureau of Statistics Tanzania",
48
+ "portal_url": "https://www.nbs.go.tz",
49
+ "resource_created": "2026-05-08",
50
+ "resource_description": "08 May, 2026 CPI Summary_042026",
51
+ "resource_filename": "en-1778237591-CPI Summary_042026.xls",
52
+ "resource_format": "XLS",
53
+ "resource_id": "nbs-stat-05df611ea1cf0c",
54
+ "resource_last_modified": "2026-05-08",
55
+ "resource_mimetype": "application/vnd.ms-excel",
56
+ "resource_name": "CPI Summary_042026",
57
+ "resource_position": "2",
58
+ "resource_url": "https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Summary_042026.xls",
59
+ "source_catalog_id": "consumer-price-index-2026",
60
+ "source_idno": "consumer-price-index-2026",
61
+ "source_total_downloads": "",
62
+ "source_total_views": "",
63
+ "tag_names": "nbs; official-statistics; public-download; xls; Energy Statistics; Advance Release Calendar; Crime Statistics; Agriculture Statistics; FinScope Survey Reports; Environmental Statistics; Gender Statistics; Financial Reports; High Frequency Data; Geographic Information System (GIS); Industrial and Construction Statistics; Health Statistics; Investment Statistics; National Accounts Statistics; Labour and Price Statistics; Hotel Statistics; Population and Housing Census; Poverty Indicators Statistics; Statistical Abstract; Tanzania in Figures; Tanzania Statistical Master Plan (TSMP); Statistical Business Register Statistics; Tax Statistics; Tourism Statistics; Trade and Transport Statistics; User Satisfaction Survey; National Bureau of Statistics"
64
+ },
65
+ "year_max": 2026,
66
+ "year_min": 2020
67
+ }