| --- |
| license: other |
| language: |
| - en |
| task_categories: |
| - tabular-regression |
| - time-series-forecasting |
| multilinguality: monolingual |
| size_categories: |
| - 1K<n<10K |
| tags: |
| - tabular |
| - xls |
| - africa |
| - tanzania |
| - official-statistics |
| - open-data |
| - energy |
| - tourism |
| - health |
| - population |
| - economics |
| pretty_name: "National Bureau of Statistics | Africa (Tanzania official open data)" |
| --- |
| |
| # National Bureau of Statistics | Africa (Tanzania official open data) |
|
|
| 2,554 rows - 1 Africa country - 2020-2026 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica) |
|
|
|  |
|  |
|  |
|  |
|  |
|
|
| ## TL;DR |
|
|
| This dataset packages one official `XLS` resource from **Tanzania** as |
| ML-ready Parquet. The source file is the provenance boundary; all usable |
| indicators or tabular columns from the resource stay together in this repo. |
|
|
| ## About the source |
|
|
| - **Source:** [National Bureau of Statistics](https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026) |
| - **Publisher:** National Bureau of Statistics, Tanzania |
| - **Resource:** [CPI Summary_042026](https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Summary_042026.xls) |
| - **Format:** `XLS` |
| - **License:** [Other open license]() |
| - **Packaging mode:** `indicator_long` |
|
|
| ## Geographic coverage |
|
|
| 1 Africa country: |
|
|
| | Country | Rows | First year | Last year | Name | |
| |---------|-----:|-----------:|----------:|------| |
| | `TZA` | 2,554 | 2020 | 2026 | `Tanzania` | |
|
|
| ## Indicators or Resource Contents |
|
|
| - `national-bureau-of-statistics-ec049201` - National Bureau of Statistics |
|
|
| ## Schema |
|
|
| | Column | Type | Description | Example | |
| |--------|------|-------------|---------| |
| | `indicator_id` | `string` | Stable indicator identifier. | `national-bureau-of-statistics-ec049201` | |
| | `indicator_name` | `string` | Human-readable indicator name. | `National Bureau of Statistics` | |
| | `country_iso3` | `string` | ISO3 country code. | `TZA` | |
| | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `2021_REBASED SERIES` | |
| | `country_name` | `string` | Country name. | `Tanzania` | |
| | `year` | `Int64` | Observation year. | `2020` | |
| | `value` | `float64` | Numeric observation value. | `3.152626042808304` | |
| | `unit` | `string` | Measurement unit, when available. | `source_units_unspecified` | |
| | `dimension_s_n` | `string` | Source dimension. | `` | |
| | `dimension_major_groups` | `string` | Source dimension. | `INFLATION RATE` | |
| | `dimension_weights` | `string` | Source dimension. | `` | |
| | `dimension_annual_average` | `string` | Source dimension. | `3.69101833278056` | |
| | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2026` | |
| | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2026` | |
| | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `2026` | |
| | `source_provider` | `string` | Publishing organization. | `National Bureau of Statistics, Tanzania` | |
| | `source_dataset` | `string` | Source package title. | `National Bureau of Statistics` | |
| | `source_resource` | `string` | Source resource title. | `CPI Summary_042026` | |
| | `source_package_id` | `string` | CKAN package UUID. | `consumer-price-index-2026` | |
| | `source_resource_id` | `string` | CKAN resource UUID. | `nbs-stat-05df611ea1cf0c` | |
| | `source_url` | `string` | Original source resource URL. | `https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Sum` | |
| | `license_id` | `string` | Source license identifier. | `other-open` | |
| | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-21T20:19:26Z` | |
|
|
| ## Usage |
|
|
| ```python |
| from datasets import load_dataset |
| |
| ds = load_dataset("electricsheepafrica/africa-tanzania-national-bureau-of-statistics-ec049201") |
| df = ds["train"].to_pandas() |
| print(df.head()) |
| ``` |
|
|
| ### Filter to one country |
|
|
| ```python |
| sample_country = df[df["country_iso3"] == "TZA"] |
| ``` |
|
|
| ### Work with indicators |
|
|
| ```python |
| if "indicator_id" in df.columns: |
| print(df["indicator_id"].value_counts().head()) |
| sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns]) |
| ``` |
|
|
| ## Citation |
|
|
| ```bibtex |
| @misc{electric_sheep_africa_africa_tanzania_national_bureau_of_statistics_ec049201_2026, |
| title = {National Bureau of Statistics | Africa (Tanzania official open data)}, |
| author = {National Bureau of Statistics, Tanzania}, |
| year = {2026}, |
| url = {https://www.nbs.go.tz/statistics/topic/consumer-price-index-2026}, |
| publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa}, |
| howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-tanzania-national-bureau-of-statistics-ec049201}} |
| } |
| ``` |
|
|
| ## License |
|
|
| Released under [Other open license](). |
|
|
| Original data (c) National Bureau of Statistics, Tanzania. When using this dataset, please cite both the |
| original source above and the Electric Sheep Africa repackaging. |
|
|
| ## About Electric Sheep |
|
|
| Electric Sheep Africa is part of the Electric Sheep mission: a unified, |
| ML-ready data layer for Africa on Hugging Face. 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. |
|
|
| Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica) |
|
|
| --- |
|
|
| Provenance: ingested 2026-07-21 via the Electric Sheep pipeline. Source URL: |
| https://www.nbs.go.tz/uploads/statistics/documents/en-1778237591-CPI Summary_042026.xls |
| |