--- license: odbl language: - en task_categories: - tabular-classification - tabular-regression multilinguality: monolingual size_categories: - n<1K tags: - tabular - csv - africa - ghana - official-statistics - open-data pretty_name: "Election Data - 2008 Presidential Election Results | Africa (Ghana official open data)" --- # Election Data - 2008 Presidential Election Results | Africa (Ghana official open data) 255 rows - 1 Africa country - 2008 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica) ![rows](https://img.shields.io/badge/rows-255-blue) ![countries](https://img.shields.io/badge/countries-1-green) ![years](https://img.shields.io/badge/years-2008-orange) ![indicators](https://img.shields.io/badge/indicators-0-purple) ![license](https://img.shields.io/badge/license-odbl-lightgrey) ## TL;DR This dataset packages one official `CSV` resource from **Ghana** 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:** [Election Data - 2008 Presidential Election Results](http://data.gov.gh/dataset/election-data-2008-presidential-election-results) - **Publisher:** Official government open data portal - **Resource:** [2008 Presidential Results Data Sheet - Ashanti Region](http://data.gov.gh/sites/default/files/2008%20Presidential%20Results%20Data%20Sheet%20-%20Ashanti%20Region.csv) - **Format:** `CSV` - **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/) - **Packaging mode:** `tabular_resource` ## Geographic coverage 1 Africa country: | Country | Rows | First year | Last year | Name | |---------|-----:|-----------:|----------:|------| | `GHA` | 255 | 2008 | 2008 | `Ghana` | ## Indicators or Resource Contents - This source file is packaged as a normalized tabular resource. ## Schema | Column | Type | Description | Example | |--------|------|-------------|---------| | `source_record_id` | `string` | Stable row identifier for tabular resources. | `40ca08cc-c63f-49cd-b8d1-dbe019841e61:0` | | `country_iso3` | `string` | ISO3 country code. | `GHA` | | `country_name` | `string` | Country name. | `Ghana` | | `year` | `Int64` | Observation year. | `2008` | | `doctype_html_public_w3c_dtd_xhtml_rdfa_1_0_en` | `string` | Source column. | `"https://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">` | | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2008` | | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2008` | | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `2008` | | `source_provider` | `string` | Publishing organization. | `Official government open data portal` | | `source_dataset` | `string` | Source package title. | `Election Data - 2008 Presidential Election Results` | | `source_resource` | `string` | Source resource title. | `2008 Presidential Results Data Sheet - Ashanti Region` | | `source_package_id` | `string` | CKAN package UUID. | `504049c6-3dec-444b-bab4-dbef00e00d38` | | `source_resource_id` | `string` | CKAN resource UUID. | `40ca08cc-c63f-49cd-b8d1-dbe019841e61` | | `source_url` | `string` | Original source resource URL. | `http://data.gov.gh/sites/default/files/2008%20Presidential%20Results%20D` | | `license_id` | `string` | Source license identifier. | `odc-odbl` | | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-18T20:11:31Z` | ## Usage ```python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-ghana-election-data-2008-presidential-election-results-8ed8c57e") df = ds["train"].to_pandas() print(df.head()) ``` ### Filter to one country ```python sample_country = df[df["country_iso3"] == "GHA"] ``` ### 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_ghana_election_data_2008_presidential_election_results_8ed8c57e_2008, title = {Election Data - 2008 Presidential Election Results | Africa (Ghana official open data)}, author = {Official government open data portal}, year = {2008}, url = {http://data.gov.gh/dataset/election-data-2008-presidential-election-results}, publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa}, howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-ghana-election-data-2008-presidential-election-results-8ed8c57e}} } ``` ## License Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/). Original data (c) Official government open data portal. 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-18 via the Electric Sheep pipeline. Source URL: http://data.gov.gh/sites/default/files/2008%20Presidential%20Results%20Data%20Sheet%20-%20Ashanti%20Region.csv