Olaroti's picture
Standardize Electric Sheep Africa dataset card
f592f0d verified
|
Raw History Blame Contribute Delete
9.04 kB
metadata
license: odc-by
language:
  - en
task_categories:
  - tabular-regression
  - time-series-forecasting
multilinguality: multilingual
size_categories:
  - n<1K
tags:
  - tabular
  - africa
  - open-data
  - official-statistics
  - ghana
  - ghana-official-open-data-portal
  - ghana-open-data
  - transport
  - group
  - roads-sector
  - car-crashes
  - casualties
  - driving
  - pedestian
  - road-accidents
  - road-users
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-00000-of-00001.parquet
pretty_name: Road Accidents and Casualties in Ghana | Africa (Ghana Open Data)

Road Accidents and Casualties in Ghana | Africa (Ghana Open Data)

205 rows - 1 Africa country/area - 2001-2011 - 5 indicators - Engineered by Electric Sheep Africa

rows countries period indicators license

TL;DR

This dataset contains 205 rows from Ghana Open Data, covering Road Accidents and Casualties in Ghana. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.

What This Dataset Measures

Transport datasets help analysts examine mobility, infrastructure, passenger movement, logistics, and access to services.

Source-provided context: Statistics of the nature and consequences of road traffic crashes in the Central Region for 2001-2011

How To Read This Dataset

  • One row means: one indicator observation for one geography, time period, and optional source dimensions.
  • Primary geography column: country_iso3.
  • Best time column: year.
  • Time coverage basis: year.
  • Recommended join keys: country_iso3, year, indicator_id.

Coverage

Dimension Value
Rows 205
Countries/areas 1
First period 2001
Last period 2011
Indicators 5
Columns 19
Source format CSV

Geographic Coverage

Top areas shown below, sorted by row count when available:

Area Rows First year Last year Name
GHA 205 2001 2011 Ghana

Indicators, Variables, Or Resource Contents

  • road-accidents-and-casualties-in-ghana-unnamed-2-c167dda3 - Road Accidents and Casualties in Ghana - unnamed 2(source_units_unspecified)
  • road-accidents-and-casualties-in-ghana-unnamed-3-3d58cddb - Road Accidents and Casualties in Ghana - unnamed 3(source_units_unspecified)
  • road-accidents-and-casualties-in-ghana-unnamed-4-ad2e50b4 - Road Accidents and Casualties in Ghana - unnamed 4(source_units_unspecified)
  • road-accidents-and-casualties-in-ghana-unnamed-5-83e627d1 - Road Accidents and Casualties in Ghana - unnamed 5(source_units_unspecified)
  • road-accidents-and-casualties-in-ghana-unnamed-6-0c826f2e - Road Accidents and Casualties in Ghana - unnamed 6(source_units_unspecified)

Schema

Column Type Description Example
indicator_id string Stable source or Electric Sheep Africa indicator identifier. road-accidents-and-casualties-in-ghana-unnamed-2-c167dda3
indicator_name string Human-readable indicator name. Road Accidents and Casualties in Ghana - unnamed 2
country_iso3 string ISO3 country or area code. GHA
country_name string Country or area name. Ghana
year int64 Observation year. 2011
value double Numeric observation value. 132.0
unit string Measurement unit, when supplied by the source. source_units_unspecified
dimension_the_nature_and_consequences_of_road_traffic_cr string Source dimension retained during long-form normalization. Head On
source_period_start_year int64 Start year inferred from source metadata. 2001
source_period_end_year int64 End year inferred from source metadata. 2011
source_period_label string Source column from the original resource. 2001-2011
source_provider string Publishing organization. Official government open data portal
source_dataset string Source dataset or package title. Road Accidents and Casualties in Ghana
source_resource string Source resource title, table name, or file name. The Nature and Consequences of Road Traffic Crashes Central Region
source_package_id string Source package identifier. 8da4913c-b3e9-415a-bd17-e52abac01cce
source_resource_id string Source resource identifier. c8ea5e79-836d-47f4-b421-c522e547b26d
source_url string Original source URL or download URL. http://data.gov.gh/sites/default/files/The%20Nature%20and%20Consequen...
license_id string Source license identifier. odc-by
retrieved_at string UTC source retrieval timestamp from the Electric Sheep Africa pipeline. 2026-07-18T20:11:31Z

Usage

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-ghana-road-accidents-and-casualties-in-ghana-52a4ad2d")
df = ds["train"].to_pandas()
print(df.head())

Inspect Columns

print(df.info())
print(df.head())

Filter By Geography

if "country_iso3" in df.columns:
    sample = df[df["country_iso3"] == "GHA"]

Time-Series Pattern

if "value" in df.columns and "year" in df.columns:
    trend = df.sort_values("year")

Pivot For Analysis

if {"indicator_id", "year", "value"}.issubset(df.columns):
    matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
    print(matrix.tail())

Data Quality Notes

  • Canonical time field: year.
  • Missing values are preserved rather than silently imputed.
  • Column names are standardized for machine use; source meanings are preserved where known.
  • Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.

Source And Provenance

Transformations Applied

  • Converted the source table to Parquet for efficient analytics and ML workflows.
  • Added or preserved source provenance columns where available.
  • Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
  • Preserved source-reported values without analytical imputation.

Suggested Analyses

  • Track mobility over time
  • Compare routes or geographies
  • Join with economic and population data
  • Build time-series views and period-over-period comparisons
  • Pivot to geography x period or indicator x period matrices
  • Check missingness before modeling
  • Use country_iso3 as the safest geography join key when present

Citation

@misc{electric_sheep_africa_africa_ghana_road_accidents_and_casualties_in_ghana_52a4ad2d_2011,
  title        = {Road Accidents and Casualties in Ghana | Africa (Ghana Open Data)},
  author       = {Ghana official open data portal},
  year         = {2011},
  url          = {http://data.gov.gh/dataset/road-accidents-and-casualties-ghana},
  publisher    = {Hugging Face Datasets, engineered by Electric Sheep Africa},
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-ghana-road-accidents-and-casualties-in-ghana-52a4ad2d}}
}

License

Released under Open Data Commons Attribution License.

Original data is published by Ghana official open data portal. Electric Sheep Africa engineering standardizes the data for discovery, loading, and analysis on Hugging Face. Cite both the original source and this ML-ready dataset when used.

About Electric Sheep Africa

Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.


Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: http://data.gov.gh/dataset/road-accidents-and-casualties-ghana