CoolFace
Datasetpublic

electricsheepafrica/africa-uganda-national-livestock-census-excel-tables-for-chapter-6-pig-n-3c2a2e18

National Livestock Census Excel Tables for Chapter 6 Pig N | Africa (Uganda Bureau of Statistics) 644 rows - 1 Africa country/area - 2024 - source table - Engineered by Electric Sheep Africa TL;DR This dataset contains 644 rows from Uganda Bureau of Statistics, covering National Livestock Census Excel Tables for Chapter 6 Pig N. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-uganda-national-livestock-census-excel-tables-for-chapter-6-pig-n-3c2a2e18.

sourceHugging Faceotherupdated 2mo agoView on Hugging Face
0likes21downloads
Dataset Card

National Livestock Census Excel Tables for Chapter 6 Pig N | Africa (Uganda Bureau of Statistics)

644 rows - 1 Africa country/area - 2024 - source table - Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)

rows countries period indicators license

TL;DR

This dataset contains 644 rows from Uganda Bureau of Statistics, covering National Livestock Census Excel Tables for Chapter 6 Pig N. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.

What This Dataset Measures

Agriculture datasets help analysts examine production, prices, inputs, land use, food systems, and rural economic activity.

Source-provided context: National Livestock Census Excel Tables For Chapter 6 Pig Numbers - Last Updated on 21st June 2024

How To Read This Dataset

  • —One row means: one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
  • —Primary geography column: country_iso3.
  • —Best time column: year.
  • —Time coverage basis: year.
  • —Recommended join keys: country_iso3 where available plus source-specific keys.

Coverage

DimensionValue
Rows644
Countries/areas1
First period2024
Last period2024
Indicators0
Columns137
Source formatXLSX

Geographic Coverage

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

AreaRowsFirst yearLast yearName
UGA64420242024Uganda

Indicators, Variables, Or Resource Contents

  • —This repo preserves one source tabular resource with its usable columns kept together.

Schema

ColumnTypeDescriptionExample
source_record_idstringStable row identifier assigned during Electric Sheep Africa engineering.ubos-stat-5852f582affc01:tab-6-1-1:0
country_iso3stringISO3 country or area code.UGA
country_namestringCountry or area name.Uganda
source_sheetstringSource column from the original resource.Tab 6.1.1
yearint64Observation year.2024
acholistringSource column from the original resource.Ankole
d_92327_48591273269doubleSource column from the original resource.249726.3307167187
d_20_55470085144043doubleSource column from the original resource.43.14658737182617
d_13_691198348999023doubleSource column from the original resource.17.067602157592773
d_14_947009086608887doubleSource column from the original resource.15.774785995483398
d_30_035682678222656doubleSource column from the original resource.19.334199905395508
d_34_099571228027344doubleSource column from the original resource.27.15415382385254
d_1_6343927383422852doubleSource column from the original resource.18.40572929382324
d_7_792669773101807doubleSource column from the original resource.2.99051284790039
d_0_6904803514480591doubleSource column from the original resource.0.7260916233062744
d_3_9344263076782227doubleSource column from the original resource.2.4657745361328125
d_2doubleSource column from the original resource.2.0
source_period_start_yearint64Start year inferred from source metadata.2024
source_period_end_yearint64End year inferred from source metadata.2024
source_period_labelstringSource column from the original resource.2024
source_providerstringPublishing organization.Uganda Bureau of Statistics
source_datasetstringSource dataset or package title.National Livestock Census Excel Tables For Chapter 6 Pig Numbers
source_resourcestringSource resource title, table name, or file name.National Livestock Census Excel Tables For Chapter 6 Pig Numbers
source_package_idstringSource package identifier.national-livestock-census-excel-tables-for-chapter-6-pig-numbers-ubos...
source_resource_idstringSource resource identifier.ubos-stat-5852f582affc01
source_urlstringOriginal source URL or download URL.https://www.ubos.org/wp-content/uploads/statistics/Chapter-6-Pig-Numb...
license_idstringSource license identifier.other-open
retrieved_atstringUTC source retrieval timestamp from the Electric Sheep Africa pipeline.2026-07-21T21:37:51Z
gulustringSource column from the original resource.``
d_12686_632639306083doubleSource column from the original resource.``
d_18_268299102783203doubleSource column from the original resource.``
d_22_781328201293945doubleSource column from the original resource.``
d_8_453667640686035doubleSource column from the original resource.``
d_17_431039810180664doubleSource column from the original resource.``
d_42_05574417114258doubleSource column from the original resource.``
d_0_8742302060127258doubleSource column from the original resource.``
d_14_437287330627441doubleSource column from the original resource.``
d_0_7300611734390259doubleSource column from the original resource.``
d_5_018428325653076doubleSource column from the original resource.``
d_3doubleSource column from the original resource.``
centralstringSource column from the original resource.``
d_600928_5924366871doubleSource column from the original resource.``
d_40_12174987792969doubleSource column from the original resource.``
d_18_850173950195312doubleSource column from the original resource.``
d_9_93413257598877doubleSource column from the original resource.``
d_17_08661460876465doubleSource column from the original resource.``
d_20_44600486755371doubleSource column from the original resource.``
d_22_421850204467773doubleSource column from the original resource.``
d_15_216034889221191doubleSource column from the original resource.``
d_0_8959677815437317doubleSource column from the original resource.``
d_3_7949798107147217doubleSource column from the original resource.``
sub_regionstringSource column from the original resource.``
numberdoubleSource column from the original resource.``
duroc_of_total_pigsdoubleSource column from the original resource.``
landrace_of_total_pigsdoubleSource column from the original resource.``
large_white_of_total_pigsdoubleSource column from the original resource.``
combrough_of_total_pigsdoubleSource column from the original resource.``
yorkshire_of_total_pigsdoubleSource column from the original resource.``
other_of_total_pigsdoubleSource column from the original resource.``
totaldoubleSource column from the original resource.``
districtstringSource column from the original resource.``
regionstringSource column from the original resource.``
maledoubleSource column from the original resource.``
femaledoubleSource column from the original resource.``
number_2doubleSource column from the original resource.``
male_2doubleSource column from the original resource.``
female_2doubleSource column from the original resource.``
number_3doubleSource column from the original resource.``
male_3doubleSource column from the original resource.``
female_3doubleSource column from the original resource.``
d_63666_95522056827doubleSource column from the original resource.``
d_38_89726257324219doubleSource column from the original resource.``
d_61_10273742675781doubleSource column from the original resource.``
d_35342_2768963398doubleSource column from the original resource.``
d_34_802101135253906doubleSource column from the original resource.``
d_65_1978988647461doubleSource column from the original resource.``
d_28324_678324228335doubleSource column from the original resource.``
d_44_00701904296875doubleSource column from the original resource.``
d_55_99298095703125doubleSource column from the original resource.``
d_2280511_824227934doubleSource column from the original resource.``
d_36_79020309448242doubleSource column from the original resource.``
d_63_20979690551758doubleSource column from the original resource.``
d_1419700_8423880173doubleSource column from the original resource.``
d_32_599525451660156doubleSource column from the original resource.``
d_67_40047454833984doubleSource column from the original resource.``
d_860810_9818399777doubleSource column from the original resource.``
d_43_70171356201172doubleSource column from the original resource.``
d_56_29828643798828doubleSource column from the original resource.``
abistringSource column from the original resource.``
d_389697_20620598615doubleSource column from the original resource.``
d_37_91549301147461doubleSource column from the original resource.``
d_62_08450698852539doubleSource column from the original resource.``
d_226588_8378574528doubleSource column from the original resource.``
d_31_382217407226562doubleSource column from the original resource.``
d_68_61778259277344doubleSource column from the original resource.``
d_163108_3683485338doubleSource column from the original resource.``
d_46_9914665222168doubleSource column from the original resource.``
d_53_0085334777832doubleSource column from the original resource.``
d_92327_48591272793doubleSource column from the original resource.``
d_51272_092893513436doubleSource column from the original resource.``
d_22143_805562220652doubleSource column from the original resource.``
d_16176_000741175229doubleSource column from the original resource.``
d_2735_5867158186174doubleSource column from the original resource.``
d_55_532859350224385doubleSource column from the original resource.``
d_23_98397979032156doubleSource column from the original resource.``
d_17_520243924399185doubleSource column from the original resource.``
d_2_962916935054872doubleSource column from the original resource.``
d_100doubleSource column from the original resource.``
northernstringSource column from the original resource.``
d_12686_632639306075doubleSource column from the original resource.``
d_5460_276098743448doubleSource column from the original resource.``
d_3632_9308795410802doubleSource column from the original resource.``
d_2926_0268936082775doubleSource column from the original resource.``
d_667_3987674132693doubleSource column from the original resource.``
d_43_03960124001912doubleSource column from the original resource.``
d_28_635895614139827doubleSource column from the original resource.``
d_23_063857658672802doubleSource column from the original resource.``
d_5_26064548716825doubleSource column from the original resource.``
d_600928_5924367113doubleSource column from the original resource.``
d_321236_06214349944doubleSource column from the original resource.``
d_179100_74265445396doubleSource column from the original resource.``
d_82661_27885738223doubleSource column from the original resource.``
d_17930_508781375756doubleSource column from the original resource.``
d_53_45661134893185doubleSource column from the original resource.``
d_29_803997497975022doubleSource column from the original resource.``
d_13_755590913422541doubleSource column from the original resource.``
d_2_9838002396706003doubleSource column from the original resource.``
d_100_00000000000001doubleSource column from the original resource.``
d_125750_26822449504doubleSource column from the original resource.``
d_82050_85078074405doubleSource column from the original resource.``
d_27025_41714711187doubleSource column from the original resource.``
d_14756_446365998872doubleSource column from the original resource.``
1917doubleSource column from the original resource.``
d_65_24904633544254doubleSource column from the original resource.``
d_21_491339564274234doubleSource column from the original resource.``
d_11_734723571050361doubleSource column from the original resource.``
d_1_5248905292328685doubleSource column from the original resource.``

Usage

python
from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-uganda-national-livestock-census-excel-tables-for-chapter-6-pig-n-3c2a2e18")
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"] == "UGA"]

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

  • —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 production or price movements
  • —Compare regions or commodities
  • —Join with climate and trade data
  • —Build time-series views and period-over-period comparisons
  • —Check missingness before modeling
  • —Use country_iso3 as the safest geography join key when present

Citation

bibtex
@misc{electric_sheep_africa_africa_uganda_national_livestock_census_excel_tables_for_chapter_6_pig_n_3c2a2e1_2024,
  title        = {National Livestock Census Excel Tables for Chapter 6 Pig N | Africa (Uganda Bureau of Statistics)},
  author       = {Uganda Bureau of Statistics},
  year         = {2024},
  url          = {https://www.ubos.org/explore-statistics/0/},
  publisher    = {Hugging Face Datasets, engineered by Electric Sheep Africa},
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-uganda-national-livestock-census-excel-tables-for-chapter-6-pig-n-3c2a2e18}}
}

License

Released under other-open.

Original data is published by Uganda Bureau of Statistics. 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://www.ubos.org/explore-statistics/0/