CoolFace
Datasetpublic

electricsheepasia/asia-climate-hdx-hapi-sri-lanka

HDX HAPI Data for Sri Lanka Publisher: HDX Humanitarian API Data · Source: HDX · License: hdx-other · Updated: 2026-02-18 Abstract This dataset contains data obtained from the HDX Humanitarian API (HDX HAPI), which provides standardized humanitarian indicators designed for seamless interoperability from multiple sources. The data facilitates automated workflows and visualizations to support humanitarian decision making. For more information, please see the HDX… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepasia/asia-climate-hdx-hapi-sri-lanka.

sourceHugging Faceotherupdated 5mo agoView on Hugging Face
0likes9downloads
Dataset Card

HDX HAPI Data for Sri Lanka

Publisher: HDX Humanitarian API Data · Source: HDX · License: hdx-other · Updated: 2026-02-18


Abstract

This dataset contains data obtained from the HDX Humanitarian API (HDX HAPI), which provides standardized humanitarian indicators designed for seamless interoperability from multiple sources. The data facilitates automated workflows and visualizations to support humanitarian decision making. For more information, please see the HDX HAPI landing page and documentation.

Each row in this dataset represents subnational administrative unit observations. Temporal coverage is indicated by the reference_period_start, reference_period_end column(s). Geographic scope: LKA.

Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).


Dataset Characteristics

DomainFood security and nutrition
Unit of observationSubnational administrative unit observations
Rows (total)129
Columns18 (3 numeric, 11 categorical, 2 datetime)
Train split103 rows
Test split25 rows
Geographic scopeLKA
PublisherHDX Humanitarian API Data
HDX last updated2026-02-18

Variables

Geographic — location_code (LKA), provider_admin1_name (Northern, Sabaragamuwa, Central), provider_admin2_name (Ratnapura, Matale, Kandy), admin1_code (LK4, LK9, LK2), admin1_name (Northern, Sabaragamuwa, Central) and 5 others.

Temporal — reference_period_start, reference_period_end.

Identifier / Metadata — esa_source (HDX), esa_processed.

Other — has_hrp, in_gho, operation (Tropical Cyclone Ditwah, Sri Lanka Floods (2017)), reporting_round (range 1.0–4.0).


Quick Start

python
from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/asia-climate-hdx-hapi-sri-lanka")
train = ds["train"].to_pandas()
test  = ds["test"].to_pandas()

print(train.shape)
train.head()

Schema

ColumnTypeNull %Range / Sample Values
location_codeobject0.0%LKA
has_hrpbool0.0%
in_ghobool0.0%
provider_admin1_nameobject4.7%Northern, Sabaragamuwa, Central
provider_admin2_nameobject34.1%Ratnapura, Matale, Kandy
admin1_codeobject4.7%LK4, LK9, LK2
admin1_nameobject4.7%Northern, Sabaragamuwa, Central
admin2_codeobject34.1%LK91, LK22, LK21
admin2_nameobject34.1%Ratnapura, Matale, Kandy
admin_levelint640.0%0.0 – 2.0 (mean 1.6124)
operationobject0.0%Tropical Cyclone Ditwah, Sri Lanka Floods (2017)
assessment_typeobject0.0%BA, SA
populationint640.0%4.0 – 286377.0 (mean 24157.9302)
reporting_roundint640.0%1.0 – 4.0 (mean 2.2868)
reference_period_startdatetime64[ns]0.0%
reference_period_enddatetime64[ns]0.0%
esa_sourceobject0.0%HDX
esa_processedobject0.0%

Numeric Summary

ColumnMinMaxMeanMedian
admin_level0.02.01.61242.0
population4.0286377.024157.93022323.0
reporting_round1.04.02.28682.0

Curation

Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Column names were lowercased and standardised to snake_case. Common missing-value markers (N/A, null, none, -, unknown, no data, #N/A) were unified to NaN. 2 column(s) were cast from string to numeric or datetime based on parse-success rate (>85% threshold). The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.


Limitations

  • —Data originates from HDX Humanitarian API Data and has not been independently validated by ESA.
  • —Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
  • —The following columns have >20% missing values and should be treated with caution in modelling: provider_admin2_name, admin2_code, admin2_name.
  • —Refer to the original HDX dataset page for the publisher's own methodology notes and caveats.

Citation

bibtex
@dataset{hdx_asia_climate_hdx_hapi_sri_lanka,
  title     = {HDX HAPI Data for Sri Lanka},
  author    = {HDX Humanitarian API Data},
  year      = {2026},
  url       = {https://data.humdata.org/dataset/hdx-hapi-lka},
  note      = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}

[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.