--- license: other language: - en task_categories: - tabular-classification - tabular-regression multilinguality: multilingual size_categories: - 100K` | ISO3 country or area code. | `ZAF` | | `country_name` | `dictionary` | Country or area name. | `South Africa` | | `demarcation_code` | `string` | Source column from the original resource. | `EC103` | | `period_code` | `string` | Source column from the original resource. | `2016M07` | | `item_code` | `int64` | Source column from the original resource. | `1404` | | `amount` | `double` | Source column from the original resource. | `0.0` | | `id` | `int64` | Source column from the original resource. | `3190600` | | `financial_year` | `int64` | Source column from the original resource. | `2016` | | `period_length` | `string` | Source column from the original resource. | `month` | | `financial_period` | `int64` | Source column from the original resource. | `7` | | `amount_type_code` | `string` | Source column from the original resource. | `ACT` | | `source_period_start_year` | `int64` | Start year inferred from source metadata. | `2016` | | `source_period_end_year` | `int64` | End year inferred from source metadata. | `2023` | | `source_period_label` | `dictionary` | Source column from the original resource. | `2016-2023` | | `source_provider` | `dictionary` | Publishing organization. | `National Treasury, South Africa` | | `source_dataset` | `dictionary` | Source dataset or package title. | `Balance Sheet - 2016` | | `source_resource` | `dictionary` | Source resource title, table name, or file name. | `Balance Sheet - 2016` | | `source_package_id` | `dictionary` | Source package identifier. | `balance-sheet-2016-municipal-money-511c7e01c0793c` | | `source_resource_id` | `dictionary` | Source resource identifier. | `municipal-money-511c7e01c0793c` | | `source_url` | `dictionary` | Original source URL or download URL. | `https://munimoney-media.s3.eu-west-1.amazonaws.com/munimoney-media/me...` | | `license_id` | `dictionary` | Source license identifier. | `other-open` | | `retrieved_at` | `dictionary` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-07-22T19:07:15Z` | ## Usage ```python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-south-africa-balance-sheet-2016-49e99f9c") df = ds["train"].to_pandas() print(df.head()) ``` ### Inspect Columns ```python print(df.info()) print(df.head()) ``` ### Filter By Geography ```python if "country_iso3" in df.columns: sample = df[df["country_iso3"] == "ZAF"] ``` ### Time-Series Pattern ```python if "value" in df.columns and "year" in df.columns: trend = df.sort_values("year") ``` ### Pivot For Analysis ```python 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 - No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation. - 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 - **Source:** [National Treasury, South Africa](https://municipaldata.treasury.gov.za/docs#cube-bsheet) - **Publisher:** National Treasury, South Africa - **Portal:** [https://municipaldata.treasury.gov.za](https://municipaldata.treasury.gov.za) - **Resource:** [Balance Sheet - 2016](https://munimoney-media.s3.eu-west-1.amazonaws.com/munimoney-media/media/bulk_downloads/bsheet_facts_v1/bsheet_facts_v1_2016__2023-09-01.csv) - **License:** other-open - **Retrieved/generated:** `2026-07-22T19:15:50Z` - **Hugging Face repo:** [electricsheepafrica/africa-south-africa-balance-sheet-2016-49e99f9c](https://huggingface.co/datasets/electricsheepafrica/africa-south-africa-balance-sheet-2016-49e99f9c) ## 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 - Build time-series dashboards - Compare economic indicators - Join with population or sector data - Check missingness before modeling - Use `country_iso3` as the safest geography join key when present ## Citation ```bibtex @misc{electric_sheep_africa_africa_south_africa_balance_sheet_2016_49e99f9c_2023, title = {Balance Sheet 2016 | Africa (National Treasury, South Africa)}, author = {National Treasury, South Africa}, year = {2023}, url = {https://municipaldata.treasury.gov.za/docs#cube-bsheet}, publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa}, howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-south-africa-balance-sheet-2016-49e99f9c}} } ``` ## License Released under other-open. Original data is published by National Treasury, South Africa. 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-12 by the Electric Sheep Africa README system. Source URL: https://municipaldata.treasury.gov.za/docs#cube-bsheet