CoolFace
Datasetpublic

africatic/africa-world-bank-energy-mining-time-series

Africa World Bank Energy and Mining Labeled Time Series Data This repository is part of the Africa Temporal Intelligence Corpus (ATIC). It contains sector-specific temporal corpus packages for African countries. ATIC sector repositories are designed for machine consumption first: Parquet tables, stable IDs, reproducible metadata, explicit provenance, review status, and separable semantic layers. Sector Scope Temporal energy indicators for African countries… See the full description on the dataset page: https://huggingface.co/datasets/africatic/africa-world-bank-energy-mining-time-series.

sourceHugging Faceotherupdated 3mo agoView on Hugging Face
0likes555downloads
Dataset Card

Africa World Bank Energy and Mining Labeled Time Series Data

This repository is part of the Africa Temporal Intelligence Corpus (ATIC). It contains sector-specific temporal corpus packages for African countries.

ATIC sector repositories are designed for machine consumption first: Parquet tables, stable IDs, reproducible metadata, explicit provenance, review status, and separable semantic layers.

Sector Scope

Temporal energy indicators for African countries, including access, consumption, clean cooking, and energy-mix transition signals.

Technical scope:

  • —electricity access
  • —clean cooking access
  • —energy consumption per capita
  • —alternative and nuclear share of energy use
  • —collection-guided source grouping: Africa · World Bank Indicators

Repository Layout

text
README.md
sector_manifest.yaml
packages/
  <package_id>/
    raw.parquet
    labels.parquet
    events.parquet
    relationships.parquet
    reasoning.jsonl
    metadata.yaml
    quality_report.json
    README.md
    LICENSE
    CHANGELOG.md
schemas/
ontology/
sources/
docs/
tools/

Package Index

PackageISO3IndicatorCoverageRaw rowsLabelsQualityReview priority
somalia_eg_elc_accs_ru_zs_v0_1SOMAccess to electricity, rural (% of rural population)2004-01-01 to 2022-01-0114170.98normal
somalia_eg_elc_rnwx_zs_v0_1SOMElectricity production from renewable sources, excluding hydroelectric (% of total)2000-01-01 to 2021-01-0118210.98normal
federal_republic_of_somalia_eg_elc_accs_ru_zs_v0_1SOMAccess to electricity, rural (% of rural population)2004-01-01 to 2022-01-0114170.98normal
federal_republic_of_somalia_eg_elc_rnwx_zs_v0_1SOMElectricity production from renewable sources, excluding hydroelectric (% of total)2000-01-01 to 2021-01-0118210.98normal
uganda_eg_elc_accs_ru_zs_v0_1UGAAccess to electricity, rural (% of rural population)1995-01-01 to 2022-01-0121280.98normal
uganda_eg_elc_fosl_zs_v0_1UGAElectricity production from oil, gas and coal sources (% of total)1991-01-01 to 2022-01-0127430.98normal
zambia_eg_use_comm_gd_pp_kd_v0_1ZMBEnergy use (kg of oil equivalent) per $1,000 GDP (constant 2021 PPP)1990-01-01 to 2022-01-0129290.98normal
zambia_tx_val_mmtl_zs_un_v0_1ZMBOres and metals exports (% of merchandise exports)1967-01-01 to 2024-01-0130350.98normal
kenya_ny_gdp_totl_rt_zs_v0_1KENTotal natural resources rents (% of GDP)1970-01-01 to 2021-01-0141410.98normal
kenya_eg_use_crnw_zs_v0_1KENCombustible renewables and waste (% of total energy)1990-01-01 to 2023-01-0128270.98normal
somalia_fed_rep_ny_adj_dmin_cd_v0_1SOMAdjusted savings: mineral depletion (current US$)1970-01-01 to 2021-01-0137370.98normal
somalia_fed_rep_eg_elc_accs_ru_zs_v0_1SOMAccess to electricity, rural (% of rural population)2005-01-01 to 2023-01-0114160.98normal
guinea_bissau_eg_elc_rnwx_zs_v0_1GNBElectricity production from renewable sources, excluding hydroelectric (% of total)2001-01-01 to 2020-01-0117210.98normal
guinea_bissau_ny_gdp_minr_rt_zs_v0_1GNBMineral rents (% of GDP)1970-01-01 to 2021-01-0141410.98normal
ethiopia_ny_adj_dmin_cd_v0_1ETHAdjusted savings: mineral depletion (current US$)1970-01-01 to 2021-01-0144670.98normal
ethiopia_ny_gdp_petr_rt_zs_v0_1ETHOil rents (% of GDP)1981-01-01 to 2020-01-0130380.98normal
south_africa_ny_gdp_totl_rt_zs_v0_1ZAFTotal natural resources rents (% of GDP)1971-01-01 to 2021-01-0141480.98normal
south_africa_eg_use_crnw_zs_v0_1ZAFCombustible renewables and waste (% of total energy)1990-01-01 to 2023-01-0128290.98normal
zimbabwe_eg_use_pcap_kg_oe_v0_1ZWEEnergy use (kg of oil equivalent per capita)1991-01-01 to 2022-01-0129380.98normal
zimbabwe_eg_fec_rnew_zs_v0_1ZWERenewable energy consumption (% of total final energy consumption)1990-01-01 to 2021-01-0126250.98normal
south_sudan_eg_elc_rnwx_kh_v0_1SSDElectricity production from renewable sources, excluding hydroelectric (kWh)2000-01-01 to 2021-01-0119210.98normal
south_sudan_ny_adj_dmin_gn_zs_v0_1SSDAdjusted savings: mineral depletion (% of GNI)2011-01-01 to 2015-01-01561.0normal
eswatini_ny_adj_dmin_gn_zs_v0_1SWZAdjusted savings: mineral depletion (% of GNI)1970-01-01 to 2021-01-0131370.98normal
eswatini_ny_adj_dngy_gn_zs_v0_1SWZAdjusted savings: energy depletion (% of GNI)1990-01-01 to 2021-01-0124420.98normal
ghana_ny_gdp_minr_rt_zs_v0_1GHAMineral rents (% of GDP)1971-01-01 to 2021-01-0140450.98normal
ghana_ny_gdp_ngas_rt_zs_v0_1GHANatural gas rents (% of GDP)1971-01-01 to 2021-01-0141540.98normal

Table Contract

Each package follows the ATIC dataset package contract:

  • —raw.parquet: source observations after light normalization.
  • —labels.parquet: proposed or reviewed statistical and temporal annotations.
  • —events.parquet: discrete events linked to evidence.
  • —relationships.parquet: temporal relationships between observations, labels, and events.
  • —reasoning.jsonl: generated explanations kept separate from approved labels.
  • —metadata.yaml: package identity, source provenance, schema version, license, review status, and evidence catalog.
  • —quality_report.json: row counts, source columns, parse failures, coverage gaps, label distributions, thresholds, quality flags, quality score, and review priority.

The canonical schema files are included under schemas/.

Required raw.parquet columns:

text
observation_id, timestamp, country_iso3, domain, indicator, value, unit,
source_provider, source_dataset, source_record_id, observation_status,
ingestion_version

Required labels.parquet columns:

text
label_id, observation_id, timestamp, country_iso3, domain, indicator,
annotation_level, label_type, label_value, confidence, evidence_id,
review_status, annotator, annotation_version, created_at

Annotation Semantics

ATIC separates source observations from interpretation.

Current seed packages include:

  • —annotation_level = 2: statistical labels such as year-over-year delta anomalies.
  • —annotation_level = 3: temporal state labels such as increasing, decreasing, and stable.
  • —review_status = proposed: automatically generated, not yet human-approved.

Confidence values are bounded from 0.0 to 1.0. They are scoring hints for review priority, not truth guarantees.

Loading Examples

Use huggingface_hub and pyarrow:

python
from huggingface_hub import hf_hub_download
import pyarrow.parquet as pq

repo_id = "africatic/africa-world-bank-energy-mining-time-series"
path = hf_hub_download(
    repo_id=repo_id,
    repo_type="dataset",
    filename="packages/somalia_eg_elc_accs_ru_zs_v0_1/raw.parquet",
)
raw = pq.read_table(path).to_pandas()
print(raw.head())

Query with DuckDB:

python
import duckdb
from huggingface_hub import hf_hub_download

labels_path = hf_hub_download(
    repo_id="africatic/africa-world-bank-energy-mining-time-series",
    repo_type="dataset",
    filename="packages/somalia_eg_elc_accs_ru_zs_v0_1/labels.parquet",
)

duckdb.sql("""
    select timestamp, label_type, label_value, confidence
    from read_parquet(?)
    where review_status = 'proposed'
    order by timestamp
""", params=[labels_path]).show()

Validation

After downloading or cloning this repository, validate a package with:

bash
python3 tools/validate_dataset.py packages/somalia_eg_elc_accs_ru_zs_v0_1

Validation checks:

  • —required package files
  • —metadata JSON Schema compatibility
  • —required Parquet columns
  • —broad Parquet type families
  • —reasoning JSONL schema
  • —quality report structure and parquet row-count agreement

Upstream Sources

Current upstream Electric Sheep Africa datasets:

  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-eswatini
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-ethiopia
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-federal-republic-of-somalia
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-ghana
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-guinea-bissau
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-kenya
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-somalia
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-somalia-fed-rep
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-south-africa
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-south-sudan
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-uganda
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-zambia
  • —electricsheepafrica/africa-world-bank-energy-and-mining-indicators-for-zimbabwe

Country information is preserved from source file paths where upstream rows do not include explicit country columns.

Provenance

Every package records:

  • —upstream provider
  • —Hugging Face dataset ID
  • —source file path
  • —source revision SHA
  • —retrieval date
  • —generation script
  • —statistical method
  • —evidence IDs
  • —review status

This makes each annotation inspectable and reproducible.

Responsible Use

The seed labels in this repository are statistical proposals. They are useful for temporal retrieval, QA, prioritizing review, and building benchmark tasks. They should not be treated as expert-approved facts until their review_status changes to approved.