Olaroti commited on
Commit
ff724d6
·
verified ·
1 Parent(s): d5ca272

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
+ - xls
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
+ 2,056 rows - 1 Africa country - 2005-2016 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
24
+
25
+ ![rows](https://img.shields.io/badge/rows-2056-blue)
26
+ ![countries](https://img.shields.io/badge/countries-1-green)
27
+ ![years](https://img.shields.io/badge/years-2005-2016-orange)
28
+ ![indicators](https://img.shields.io/badge/indicators-25-purple)
29
+ ![license](https://img.shields.io/badge/license-other-lightgrey)
30
+
31
+ ## TL;DR
32
+
33
+ This dataset packages one official `XLS` 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:** [Second Quarter Gross Domestic Product 2017.xls](https://www.nbs.go.tz/uploads/statistics/documents/en-1705429386-Second_Quarter_Gross_Domestic_Product_2017.xls)
42
+ - **Format:** `XLS`
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` | 2,056 | 2005 | 2016 | `Tanzania` |
53
+
54
+ ## Indicators or Resource Contents
55
+
56
+ - `national-bureau-of-statistics-year-437effa5` - National Bureau of Statistics - year
57
+ - `national-bureau-of-statistics-quar-ter-3cfe431c` - National Bureau of Statistics - quar ter
58
+ - `national-bureau-of-statistics-agriculture-b5e7b72d` - National Bureau of Statistics - agriculture
59
+ - `national-bureau-of-statistics-mining-and-quarrying-569d00f1` - National Bureau of Statistics - mining and quarrying
60
+ - `national-bureau-of-statistics-manufac-turing-ba3fbdb9` - National Bureau of Statistics - manufac turing
61
+ - `national-bureau-of-statistics-electricity-c1c11483` - National Bureau of Statistics - electricity
62
+ - `national-bureau-of-statistics-water-21b347c2` - National Bureau of Statistics - water
63
+ - `national-bureau-of-statistics-construc-tion-6bf1287a` - National Bureau of Statistics - construc tion
64
+ - `national-bureau-of-statistics-trade-and-repair-96a7f547` - National Bureau of Statistics - trade and repair
65
+ - `national-bureau-of-statistics-accommodation-restaurant-046b2503` - National Bureau of Statistics - accommodation restaurant
66
+ - `national-bureau-of-statistics-transport-and-storage-4d78eb5d` - National Bureau of Statistics - transport and storage
67
+ - `national-bureau-of-statistics-information-and-communication-95eab036` - National Bureau of Statistics - information and communication
68
+ - `national-bureau-of-statistics-financial-insurance-8ca9a2a8` - National Bureau of Statistics - financial insurance
69
+ - `national-bureau-of-statistics-quar-ter-2-32cd0c8f` - National Bureau of Statistics - quar ter 2
70
+ - `national-bureau-of-statistics-public-admi-nistration-6c408148` - National Bureau of Statistics - public admi nistration
71
+ - `national-bureau-of-statistics-professional-scientific-technical-act-b881870a` - National Bureau of Statistics - professional scientific technical act
72
+ - `national-bureau-of-statistics-administrative-support-services-3393f835` - National Bureau of Statistics - administrative support services
73
+ - `national-bureau-of-statistics-real-estate-5ae17620` - National Bureau of Statistics - real estate
74
+ - `national-bureau-of-statistics-education-291e3ddd` - National Bureau of Statistics - education
75
+ - `national-bureau-of-statistics-health-ecee705a` - National Bureau of Statistics - health
76
+
77
+ ## Schema
78
+
79
+ | Column | Type | Description | Example |
80
+ |--------|------|-------------|---------|
81
+ | `indicator_id` | `string` | Stable indicator identifier. | `national-bureau-of-statistics-year-437effa5` |
82
+ | `indicator_name` | `string` | Human-readable indicator name. | `National Bureau of Statistics - year` |
83
+ | `country_iso3` | `string` | ISO3 country code. | `TZA` |
84
+ | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `Table KP Tshs` |
85
+ | `country_name` | `string` | Country name. | `Tanzania` |
86
+ | `year` | `Int64` | Observation year. | `2005` |
87
+ | `value` | `float64` | Numeric observation value. | `2005.0` |
88
+ | `unit` | `string` | Measurement unit, when available. | `source_units_unspecified` |
89
+ | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2017` |
90
+ | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2017` |
91
+ | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `2017` |
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. | `Second Quarter Gross Domestic Product 2017.xls` |
95
+ | `source_package_id` | `string` | CKAN package UUID. | `gross-domestic-product-gdp` |
96
+ | `source_resource_id` | `string` | CKAN resource UUID. | `nbs-stat-503d079696c765` |
97
+ | `source_url` | `string` | Original source resource URL. | `https://www.nbs.go.tz/uploads/statistics/documents/en-1705429386-Second_` |
98
+ | `license_id` | `string` | Source license identifier. | `other-open` |
99
+ | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-21T20:05:22Z` |
100
+
101
+ ## Usage
102
+
103
+ ```python
104
+ from datasets import load_dataset
105
+
106
+ ds = load_dataset("electricsheepafrica/africa-tanzania-national-bureau-of-statistics-8cc839b2")
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_8cc839b2_2016,
129
+ title = {National Bureau of Statistics | Africa (Tanzania official open data)},
130
+ author = {National Bureau of Statistics, Tanzania},
131
+ year = {2016},
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-8cc839b2}}
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-1705429386-Second_Quarter_Gross_Domestic_Product_2017.xls
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e2a5cb736166c25332eb1475b8c1daa1f0702ff28c6f1d47f18756048f441c2
3
+ size 31933
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:13:19Z",
24
+ "indicator_count": 25,
25
+ "mode": "indicator_long",
26
+ "repo_id": "electricsheepafrica/africa-tanzania-national-bureau-of-statistics-8cc839b2",
27
+ "rows": 2056,
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-1705429386-Second_Quarter_Gross_Domestic_Product_2017.xls; 2017-06-16",
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?page=10",
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": "2017-06-16",
46
+ "resource_description": "16 June, 2017 Second Quarter Gross Domestic Product 2017.xls",
47
+ "resource_filename": "en-1705429386-Second_Quarter_Gross_Domestic_Product_2017.xls",
48
+ "resource_format": "XLS",
49
+ "resource_id": "nbs-stat-503d079696c765",
50
+ "resource_last_modified": "2017-06-16",
51
+ "resource_mimetype": "application/vnd.ms-excel",
52
+ "resource_name": "Second Quarter Gross Domestic Product 2017.xls",
53
+ "resource_position": "1",
54
+ "resource_url": "https://www.nbs.go.tz/uploads/statistics/documents/en-1705429386-Second_Quarter_Gross_Domestic_Product_2017.xls",
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; xls; National Accounts Statistics; National Bureau of Statistics"
60
+ },
61
+ "year_max": 2016,
62
+ "year_min": 2005
63
+ }