Kossisoroyce's picture
Add ML-ready official indicator dataset
c5ef8b6 verified
|
Raw
History Blame Contribute Delete
6.36 kB
metadata
license: other
language:
  - en
task_categories:
  - tabular-regression
  - time-series-forecasting
multilinguality: monolingual
size_categories:
  - n<1K
tags:
  - tabular
  - xlsx
  - africa
  - uganda
  - official-statistics
  - open-data
pretty_name: >-
  Prison Capacity and Occupancy Rate by region, 2019 -2023 | Africa (Uganda
  official open data)

Prison Capacity and Occupancy Rate by region, 2019 -2023 | Africa (Uganda official open data)

15 rows - 1 Africa country - 1923 - Repackaged by Electric Sheep Africa

rows countries years indicators license

TL;DR

This dataset packages one official XLSX resource from Uganda 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

Geographic coverage

1 Africa country:

Country Rows First year Last year Name
UGA 15 1923 1923 Uganda

Indicators or Resource Contents

  • prison-capacity-and-occupancy-rate-by-region-2019-2023-84c06133 - Prison Capacity and Occupancy Rate by region, 2019 -2023

Schema

Column Type Description Example
indicator_id string Stable indicator identifier. prison-capacity-and-occupancy-rate-by-region-2019-2023-84c06133
indicator_name string Human-readable indicator name. Prison Capacity and Occupancy Rate by region, 2019 -2023
country_iso3 string ISO3 country code. UGA
source_sheet string Workbook sheet name, when the source is a spreadsheet. Data
country_name string Country name. Uganda
year Int64 Observation year. 1923
value float64 Numeric observation value. 4074.0
unit string Measurement unit, when available. source_units_unspecified
dimension_kampala string Source dimension. Central
dimension_d_2520 string Source dimension. 5037
dimension_d_2629 string Source dimension. 5585
dimension_d_400_8 string Source dimension. 348
dimension_d_298 string Source dimension. 253
dimension_column string Source dimension. 385.6
dimension_d_390 string Source dimension. 325.7
dimension_d_411_1 string Source dimension. 292.2
source_period_start_year Int64 First year inferred from source resource metadata. 2019
source_period_end_year Int64 Last year inferred from source resource metadata. 2025
source_period_label string Human-readable period inferred from source resource metadata. 2019-2025
source_provider string Publishing organization. Uganda Bureau of Statistics
source_dataset string Source package title. Prison Capacity and Occupancy Rate by region, 2019 -2023
source_resource string Source resource title. Prison Capacity and Occupancy Rate by region, 2019 -2023
source_package_id string CKAN package UUID. prison-capacity-and-occupancy-rate-by-region-2019-2023-ubos-stat-62553ba
source_resource_id string CKAN resource UUID. ubos-stat-62553ba46efd0a
source_url string Original source resource URL. https://www.ubos.org/wp-content/uploads/statistics/Prison-Capacity-and-O
license_id string Source license identifier. other-open
retrieved_at string UTC retrieval timestamp. 2026-07-21T21:37:51Z

Usage

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-uganda-prison-capacity-and-occupancy-rate-by-region-2019-2023-84c06133")
df = ds["train"].to_pandas()
print(df.head())

Filter to one country

sample_country = df[df["country_iso3"] == "UGA"]

Work with indicators

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

@misc{electric_sheep_africa_africa_uganda_prison_capacity_and_occupancy_rate_by_region_2019_2023_84c06133_1923,
  title        = {Prison Capacity and Occupancy Rate by region, 2019 -2023 | Africa (Uganda official open data)},
  author       = {Uganda Bureau of Statistics},
  year         = {1923},
  url          = {https://www.ubos.org/explore-statistics/0/},
  publisher    = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-uganda-prison-capacity-and-occupancy-rate-by-region-2019-2023-84c06133}}
}

License

Released under Other open license.

Original data (c) Uganda Bureau of Statistics. 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


Provenance: ingested 2026-07-21 via the Electric Sheep pipeline. Source URL: https://www.ubos.org/wp-content/uploads/statistics/Prison-Capacity-and-Occupancy-Rate-by-region-2019-2023.xlsx