Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ArrowInvalid
Message:      BatchSize must be greater than 0, got 0
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 489, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/parquet/parquet.py", line 208, in _generate_tables
                  parquet_fragment.to_batches(
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      batch_size=batch_size,
                      ^^^^^^^^^^^^^^^^^^^^^^
                  ...<3 lines>...
                      fragment_readahead=0,
                      ^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "pyarrow/_dataset.pyx", line 1648, in pyarrow._dataset.Fragment.to_batches
                File "pyarrow/_dataset.pyx", line 3792, in pyarrow._dataset.Scanner.from_fragment
                  _populate_builder(builder, columns=columns, filter=filter,
                File "pyarrow/_dataset.pyx", line 3574, in pyarrow._dataset._populate_builder
                  check_status(builder.BatchSize(batch_size))
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: BatchSize must be greater than 0, got 0

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

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

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

Package ISO3 Indicator Coverage Raw rows Labels Quality Review priority
somalia_eg_elc_accs_ru_zs_v0_1 SOM Access to electricity, rural (% of rural population) 2004-01-01 to 2022-01-01 14 17 0.98 normal
somalia_eg_elc_rnwx_zs_v0_1 SOM Electricity production from renewable sources, excluding hydroelectric (% of total) 2000-01-01 to 2021-01-01 18 21 0.98 normal
federal_republic_of_somalia_eg_elc_accs_ru_zs_v0_1 SOM Access to electricity, rural (% of rural population) 2004-01-01 to 2022-01-01 14 17 0.98 normal
federal_republic_of_somalia_eg_elc_rnwx_zs_v0_1 SOM Electricity production from renewable sources, excluding hydroelectric (% of total) 2000-01-01 to 2021-01-01 18 21 0.98 normal
uganda_eg_elc_accs_ru_zs_v0_1 UGA Access to electricity, rural (% of rural population) 1995-01-01 to 2022-01-01 21 28 0.98 normal
uganda_eg_elc_fosl_zs_v0_1 UGA Electricity production from oil, gas and coal sources (% of total) 1991-01-01 to 2022-01-01 27 43 0.98 normal
zambia_eg_use_comm_gd_pp_kd_v0_1 ZMB Energy use (kg of oil equivalent) per $1,000 GDP (constant 2021 PPP) 1990-01-01 to 2022-01-01 29 29 0.98 normal
zambia_tx_val_mmtl_zs_un_v0_1 ZMB Ores and metals exports (% of merchandise exports) 1967-01-01 to 2024-01-01 30 35 0.98 normal
kenya_ny_gdp_totl_rt_zs_v0_1 KEN Total natural resources rents (% of GDP) 1970-01-01 to 2021-01-01 41 41 0.98 normal
kenya_eg_use_crnw_zs_v0_1 KEN Combustible renewables and waste (% of total energy) 1990-01-01 to 2023-01-01 28 27 0.98 normal
somalia_fed_rep_ny_adj_dmin_cd_v0_1 SOM Adjusted savings: mineral depletion (current US$) 1970-01-01 to 2021-01-01 37 37 0.98 normal
somalia_fed_rep_eg_elc_accs_ru_zs_v0_1 SOM Access to electricity, rural (% of rural population) 2005-01-01 to 2023-01-01 14 16 0.98 normal
guinea_bissau_eg_elc_rnwx_zs_v0_1 GNB Electricity production from renewable sources, excluding hydroelectric (% of total) 2001-01-01 to 2020-01-01 17 21 0.98 normal
guinea_bissau_ny_gdp_minr_rt_zs_v0_1 GNB Mineral rents (% of GDP) 1970-01-01 to 2021-01-01 41 41 0.98 normal
ethiopia_ny_adj_dmin_cd_v0_1 ETH Adjusted savings: mineral depletion (current US$) 1970-01-01 to 2021-01-01 44 67 0.98 normal
ethiopia_ny_gdp_petr_rt_zs_v0_1 ETH Oil rents (% of GDP) 1981-01-01 to 2020-01-01 30 38 0.98 normal
south_africa_ny_gdp_totl_rt_zs_v0_1 ZAF Total natural resources rents (% of GDP) 1971-01-01 to 2021-01-01 41 48 0.98 normal
south_africa_eg_use_crnw_zs_v0_1 ZAF Combustible renewables and waste (% of total energy) 1990-01-01 to 2023-01-01 28 29 0.98 normal
zimbabwe_eg_use_pcap_kg_oe_v0_1 ZWE Energy use (kg of oil equivalent per capita) 1991-01-01 to 2022-01-01 29 38 0.98 normal
zimbabwe_eg_fec_rnew_zs_v0_1 ZWE Renewable energy consumption (% of total final energy consumption) 1990-01-01 to 2021-01-01 26 25 0.98 normal
south_sudan_eg_elc_rnwx_kh_v0_1 SSD Electricity production from renewable sources, excluding hydroelectric (kWh) 2000-01-01 to 2021-01-01 19 21 0.98 normal
south_sudan_ny_adj_dmin_gn_zs_v0_1 SSD Adjusted savings: mineral depletion (% of GNI) 2011-01-01 to 2015-01-01 5 6 1.0 normal
eswatini_ny_adj_dmin_gn_zs_v0_1 SWZ Adjusted savings: mineral depletion (% of GNI) 1970-01-01 to 2021-01-01 31 37 0.98 normal
eswatini_ny_adj_dngy_gn_zs_v0_1 SWZ Adjusted savings: energy depletion (% of GNI) 1990-01-01 to 2021-01-01 24 42 0.98 normal
ghana_ny_gdp_minr_rt_zs_v0_1 GHA Mineral rents (% of GDP) 1971-01-01 to 2021-01-01 40 45 0.98 normal
ghana_ny_gdp_ngas_rt_zs_v0_1 GHA Natural gas rents (% of GDP) 1971-01-01 to 2021-01-01 41 54 0.98 normal

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:

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

Required labels.parquet columns:

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:

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:

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:

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.

Downloads last month
63