Olaroti commited on
Commit
371ca7d
·
verified ·
1 Parent(s): b9ee6c1

Add ML-ready official indicator dataset

Browse files
README.md ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - tabular-classification
7
+ - tabular-regression
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - n<1K
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
+ 228 rows - 1 Africa country - 2026 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
29
+
30
+ ![rows](https://img.shields.io/badge/rows-228-blue)
31
+ ![countries](https://img.shields.io/badge/countries-1-green)
32
+ ![years](https://img.shields.io/badge/years-2026-orange)
33
+ ![indicators](https://img.shields.io/badge/indicators-0-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_062026](https://www.nbs.go.tz/uploads/statistics/documents/en-1783516058-CPI Summary_062026.xls)
47
+ - **Format:** `XLS`
48
+ - **License:** [Other open license]()
49
+ - **Packaging mode:** `tabular_resource`
50
+
51
+ ## Geographic coverage
52
+
53
+ 1 Africa country:
54
+
55
+ | Country | Rows | First year | Last year | Name |
56
+ |---------|-----:|-----------:|----------:|------|
57
+ | `TZA` | 228 | 2026 | 2026 | `Tanzania` |
58
+
59
+ ## Indicators or Resource Contents
60
+
61
+ - This source file is packaged as a normalized tabular resource.
62
+
63
+ ## Schema
64
+
65
+ | Column | Type | Description | Example |
66
+ |--------|------|-------------|---------|
67
+ | `source_record_id` | `string` | Stable row identifier for tabular resources. | `nbs-stat-0e1a91381d4be4:2021-rebased-series:0` |
68
+ | `country_iso3` | `string` | ISO3 country code. | `TZA` |
69
+ | `country_name` | `string` | Country name. | `Tanzania` |
70
+ | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `2021_REBASED SERIES` |
71
+ | `year` | `Int64` | Observation year. | `2026` |
72
+ | `s_n` | `float64` | Source column. | `` |
73
+ | `major_groups` | `string` | Source column. | `INFLATION RATE` |
74
+ | `weights` | `float64` | Source column. | `` |
75
+ | `2020` | `float64` | Source column. | `3.152626042808304` |
76
+ | `2021` | `float64` | Source column. | `3.53198016721652` |
77
+ | `2021_2` | `float64` | Source column. | `3.3031044127693754` |
78
+ | `2021_3` | `float64` | Source column. | `3.165375564514017` |
79
+ | `2021_4` | `float64` | Source column. | `3.298870081794547` |
80
+ | `2021_5` | `float64` | Source column. | `3.3499512825533984` |
81
+ | `2021_6` | `float64` | Source column. | `3.593649781468655` |
82
+ | `2021_7` | `float64` | Source column. | `3.81279749262049` |
83
+ | `2021_8` | `float64` | Source column. | `3.844651799633492` |
84
+ | `2021_9` | `float64` | Source column. | `4.041785760507133` |
85
+ | `2021_10` | `float64` | Source column. | `4.036276598347599` |
86
+ | `2021_11` | `float64` | Source column. | `4.147773148102929` |
87
+ | `2021_12` | `float64` | Source column. | `4.16580602586567` |
88
+ | `annual_average` | `float64` | Source column. | `3.69101833278056` |
89
+ | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2026` |
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. | `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. | `CPI Summary_062026` |
95
+ | `source_package_id` | `string` | CKAN package UUID. | `consumer-price-index-2026` |
96
+ | `source_resource_id` | `string` | CKAN resource UUID. | `nbs-stat-0e1a91381d4be4` |
97
+ | `source_url` | `string` | Original source resource URL. | `https://www.nbs.go.tz/uploads/statistics/documents/en-1783516058-CPI Sum` |
98
+ | `license_id` | `string` | Source license identifier. | `other-open` |
99
+ | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-21T20:19:26Z` |
100
+ | `2022` | `float64` | Source column. | `` |
101
+ | `2022_2` | `float64` | Source column. | `` |
102
+ | `2022_3` | `float64` | Source column. | `` |
103
+ | `2022_4` | `float64` | Source column. | `` |
104
+ | `2022_5` | `float64` | Source column. | `` |
105
+ | `2022_6` | `float64` | Source column. | `` |
106
+ | `2022_7` | `float64` | Source column. | `` |
107
+ | `2022_8` | `float64` | Source column. | `` |
108
+ | `2022_9` | `float64` | Source column. | `` |
109
+ | `2022_10` | `float64` | Source column. | `` |
110
+ | `2022_11` | `float64` | Source column. | `` |
111
+ | `2022_12` | `float64` | Source column. | `` |
112
+ | `column_1` | `float64` | Source column. | `` |
113
+ | `all_items_index` | `string` | Source column. | `` |
114
+ | `d_100` | `float64` | Source column. | `` |
115
+ | `d_110_0059862738567` | `float64` | Source column. | `` |
116
+ | `d_110_80899424867764` | `float64` | Source column. | `` |
117
+ | `d_111_27521612969062` | `float64` | Source column. | `` |
118
+ | `d_112_12587857167243` | `float64` | Source column. | `` |
119
+ | `d_112_53743610116287` | `float64` | Source column. | `` |
120
+ | `d_112_71994947208118` | `float64` | Source column. | `` |
121
+ | `d_112_81282628360859` | `float64` | Source column. | `` |
122
+ | `d_112_66898915675567` | `float64` | Source column. | `` |
123
+ | `d_112_25247068064428` | `float64` | Source column. | `` |
124
+ | `d_112_34798815996687` | `float64` | Source column. | `` |
125
+ | `d_112_17587809184703` | `float64` | Source column. | `` |
126
+ | `d_112_6726354975784` | `float64` | Source column. | `` |
127
+ | `d_113_34071255940322` | `float64` | Source column. | `` |
128
+ | `d_112_31158124609073` | `float64` | Source column. | `` |
129
+ | `d_114_08885146405525` | `float64` | Source column. | `` |
130
+ | `d_114_64544526255436` | `float64` | Source column. | `` |
131
+ | `d_115_50831378071997` | `float64` | Source column. | `` |
132
+ | `d_116_05590593040294` | `float64` | Source column. | `` |
133
+ | `d_116_182187582218` | `float64` | Source column. | `` |
134
+ | `d_116_30096856903239` | `float64` | Source column. | `` |
135
+ | `d_116_04201504331722` | `float64` | Source column. | `` |
136
+ | `d_115_78449779649706` | `float64` | Source column. | `` |
137
+ | `d_115_87958312335394` | `float64` | Source column. | `` |
138
+ | `d_115_54083703430358` | `float64` | Source column. | `` |
139
+ | `d_116_0494133608614` | `float64` | Source column. | `` |
140
+ | `d_116_86536106361109` | `float64` | Source column. | `` |
141
+ | `d_115_74528166757726` | `float64` | Source column. | `` |
142
+ | `2024` | `float64` | Source column. | `` |
143
+ | `2025` | `float64` | Source column. | `` |
144
+ | `2025_2` | `float64` | Source column. | `` |
145
+ | `2025_3` | `float64` | Source column. | `` |
146
+ | `2025_4` | `float64` | Source column. | `` |
147
+ | `2025_5` | `float64` | Source column. | `` |
148
+ | `2025_6` | `float64` | Source column. | `` |
149
+ | `2025_7` | `float64` | Source column. | `` |
150
+ | `2025_8` | `float64` | Source column. | `` |
151
+ | `2025_9` | `float64` | Source column. | `` |
152
+ | `2025_10` | `float64` | Source column. | `` |
153
+ | `2025_11` | `float64` | Source column. | `` |
154
+ | `2025_12` | `float64` | Source column. | `` |
155
+ | `2026` | `float64` | Source column. | `` |
156
+ | `2026_2` | `float64` | Source column. | `` |
157
+ | `2026_3` | `float64` | Source column. | `` |
158
+ | `2026_4` | `float64` | Source column. | `` |
159
+ | `2026_5` | `float64` | Source column. | `` |
160
+ | `2026_6` | `float64` | Source column. | `` |
161
+ | `2026_7` | `string` | Source column. | `` |
162
+ | `2026_8` | `string` | Source column. | `` |
163
+ | `2026_9` | `string` | Source column. | `` |
164
+ | `2026_10` | `string` | Source column. | `` |
165
+ | `2026_11` | `string` | Source column. | `` |
166
+ | `2026_12` | `string` | Source column. | `` |
167
+
168
+ ## Usage
169
+
170
+ ```python
171
+ from datasets import load_dataset
172
+
173
+ ds = load_dataset("electricsheepafrica/africa-tanzania-national-bureau-of-statistics-8c81d3e0")
174
+ df = ds["train"].to_pandas()
175
+ print(df.head())
176
+ ```
177
+
178
+ ### Filter to one country
179
+
180
+ ```python
181
+ sample_country = df[df["country_iso3"] == "TZA"]
182
+ ```
183
+
184
+ ### Work with indicators
185
+
186
+ ```python
187
+ if "indicator_id" in df.columns:
188
+ print(df["indicator_id"].value_counts().head())
189
+ sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
190
+ ```
191
+
192
+ ## Citation
193
+
194
+ ```bibtex
195
+ @misc{electric_sheep_africa_africa_tanzania_national_bureau_of_statistics_8c81d3e0_2026,
196
+ title = {National Bureau of Statistics | Africa (Tanzania official open data)},
197
+ author = {National Bureau of Statistics, Tanzania},
198
+ year = {2026},
199
+ url = {https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026},
200
+ publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
201
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-tanzania-national-bureau-of-statistics-8c81d3e0}}
202
+ }
203
+ ```
204
+
205
+ ## License
206
+
207
+ Released under [Other open license]().
208
+
209
+ Original data (c) National Bureau of Statistics, Tanzania. When using this dataset, please cite both the
210
+ original source above and the Electric Sheep Africa repackaging.
211
+
212
+ ## About Electric Sheep
213
+
214
+ Electric Sheep Africa is part of the Electric Sheep mission: a unified,
215
+ ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
216
+ open sources, normalize the schemas, package as Parquet, and publish with
217
+ consistent dataset cards so researchers and developers can use `load_dataset()`
218
+ to start working in seconds.
219
+
220
+ Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
221
+
222
+ ---
223
+
224
+ Provenance: ingested 2026-07-21 via the Electric Sheep pipeline. Source URL:
225
+ https://www.nbs.go.tz/uploads/statistics/documents/en-1783516058-CPI Summary_062026.xls
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b722a3a0764332eb70183746f176c360c87a4f2c6162b7d7960a9b3a9bda5ad
3
+ size 89165
metadata/source_snapshot.json ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "columns": [
3
+ "source_record_id",
4
+ "country_iso3",
5
+ "country_name",
6
+ "source_sheet",
7
+ "year",
8
+ "s_n",
9
+ "major_groups",
10
+ "weights",
11
+ "2020",
12
+ "2021",
13
+ "2021_2",
14
+ "2021_3",
15
+ "2021_4",
16
+ "2021_5",
17
+ "2021_6",
18
+ "2021_7",
19
+ "2021_8",
20
+ "2021_9",
21
+ "2021_10",
22
+ "2021_11",
23
+ "2021_12",
24
+ "annual_average",
25
+ "source_period_start_year",
26
+ "source_period_end_year",
27
+ "source_period_label",
28
+ "source_provider",
29
+ "source_dataset",
30
+ "source_resource",
31
+ "source_package_id",
32
+ "source_resource_id",
33
+ "source_url",
34
+ "license_id",
35
+ "retrieved_at",
36
+ "2022",
37
+ "2022_2",
38
+ "2022_3",
39
+ "2022_4",
40
+ "2022_5",
41
+ "2022_6",
42
+ "2022_7",
43
+ "2022_8",
44
+ "2022_9",
45
+ "2022_10",
46
+ "2022_11",
47
+ "2022_12",
48
+ "column_1",
49
+ "all_items_index",
50
+ "d_100",
51
+ "d_110_0059862738567",
52
+ "d_110_80899424867764",
53
+ "d_111_27521612969062",
54
+ "d_112_12587857167243",
55
+ "d_112_53743610116287",
56
+ "d_112_71994947208118",
57
+ "d_112_81282628360859",
58
+ "d_112_66898915675567",
59
+ "d_112_25247068064428",
60
+ "d_112_34798815996687",
61
+ "d_112_17587809184703",
62
+ "d_112_6726354975784",
63
+ "d_113_34071255940322",
64
+ "d_112_31158124609073",
65
+ "d_114_08885146405525",
66
+ "d_114_64544526255436",
67
+ "d_115_50831378071997",
68
+ "d_116_05590593040294",
69
+ "d_116_182187582218",
70
+ "d_116_30096856903239",
71
+ "d_116_04201504331722",
72
+ "d_115_78449779649706",
73
+ "d_115_87958312335394",
74
+ "d_115_54083703430358",
75
+ "d_116_0494133608614",
76
+ "d_116_86536106361109",
77
+ "d_115_74528166757726",
78
+ "2024",
79
+ "2025",
80
+ "2025_2",
81
+ "2025_3",
82
+ "2025_4",
83
+ "2025_5",
84
+ "2025_6",
85
+ "2025_7",
86
+ "2025_8",
87
+ "2025_9",
88
+ "2025_10",
89
+ "2025_11",
90
+ "2025_12",
91
+ "2026",
92
+ "2026_2",
93
+ "2026_3",
94
+ "2026_4",
95
+ "2026_5",
96
+ "2026_6",
97
+ "2026_7",
98
+ "2026_8",
99
+ "2026_9",
100
+ "2026_10",
101
+ "2026_11",
102
+ "2026_12"
103
+ ],
104
+ "generated_at": "2026-07-21T20:21:26Z",
105
+ "indicator_count": 0,
106
+ "mode": "tabular_resource",
107
+ "repo_id": "electricsheepafrica/africa-tanzania-national-bureau-of-statistics-8c81d3e0",
108
+ "rows": 228,
109
+ "source": {
110
+ "api_base_url": "https://www.nbs.go.tz/statistics",
111
+ "country_iso3": "TZA",
112
+ "country_name": "Tanzania",
113
+ "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-1783516058-CPI Summary_062026.xls; 2026-07-08",
114
+ "license_id": "other-open",
115
+ "license_title": "Public NBS statistics download",
116
+ "license_url": "https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026",
117
+ "organization_title": "National Bureau of Statistics, Tanzania",
118
+ "package_id": "consumer-price-index-2026",
119
+ "package_name": "consumer-price-index-2026",
120
+ "package_notes": "Public statistics downloads from the Tanzania NBS topic page: National Bureau of Statistics",
121
+ "package_page_url": "https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026",
122
+ "package_title": "National Bureau of Statistics",
123
+ "package_type": "statistics-topic",
124
+ "portal_title": "National Bureau of Statistics Tanzania",
125
+ "portal_url": "https://www.nbs.go.tz",
126
+ "resource_created": "2026-07-08",
127
+ "resource_description": "08 July, 2026 CPI Summary_062026",
128
+ "resource_filename": "en-1783516058-CPI Summary_062026.xls",
129
+ "resource_format": "XLS",
130
+ "resource_id": "nbs-stat-0e1a91381d4be4",
131
+ "resource_last_modified": "2026-07-08",
132
+ "resource_mimetype": "application/vnd.ms-excel",
133
+ "resource_name": "CPI Summary_062026",
134
+ "resource_position": "0",
135
+ "resource_url": "https://www.nbs.go.tz/uploads/statistics/documents/en-1783516058-CPI Summary_062026.xls",
136
+ "source_catalog_id": "consumer-price-index-2026",
137
+ "source_idno": "consumer-price-index-2026",
138
+ "source_total_downloads": "",
139
+ "source_total_views": "",
140
+ "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"
141
+ },
142
+ "year_max": 2026,
143
+ "year_min": 2026
144
+ }