Add README.md
Browse files
README.md
CHANGED
|
@@ -1,54 +1,196 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
-
features:
|
| 4 |
-
- name: date
|
| 5 |
-
dtype: timestamp[ns]
|
| 6 |
-
- name: adm_level
|
| 7 |
-
dtype: int64
|
| 8 |
-
- name: adm_id
|
| 9 |
-
dtype: int64
|
| 10 |
-
- name: pcode
|
| 11 |
-
dtype: string
|
| 12 |
-
- name: n_pixels
|
| 13 |
-
dtype: float64
|
| 14 |
-
- name: rfh
|
| 15 |
-
dtype: float64
|
| 16 |
-
- name: rfh_avg
|
| 17 |
-
dtype: float64
|
| 18 |
-
- name: r1h
|
| 19 |
-
dtype: float64
|
| 20 |
-
- name: r1h_avg
|
| 21 |
-
dtype: float64
|
| 22 |
-
- name: r3h
|
| 23 |
-
dtype: float64
|
| 24 |
-
- name: r3h_avg
|
| 25 |
-
dtype: float64
|
| 26 |
-
- name: rfq
|
| 27 |
-
dtype: float64
|
| 28 |
-
- name: r1q
|
| 29 |
-
dtype: float64
|
| 30 |
-
- name: r3q
|
| 31 |
-
dtype: float64
|
| 32 |
-
- name: version
|
| 33 |
-
dtype: string
|
| 34 |
-
- name: esa_source
|
| 35 |
-
dtype: string
|
| 36 |
-
- name: esa_processed
|
| 37 |
-
dtype: string
|
| 38 |
splits:
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
num_bytes: 5396414
|
| 44 |
-
num_examples: 36838
|
| 45 |
-
download_size: 16107009
|
| 46 |
-
dataset_size: 26981662
|
| 47 |
-
configs:
|
| 48 |
-
- config_name: default
|
| 49 |
-
data_files:
|
| 50 |
-
- split: train
|
| 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
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- no-annotation
|
| 4 |
+
language_creators:
|
| 5 |
+
- found
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
license: cc-by-4.0
|
| 9 |
+
multilinguality:
|
| 10 |
+
- monolingual
|
| 11 |
+
size_categories:
|
| 12 |
+
- 100K<n<1M
|
| 13 |
+
source_datasets:
|
| 14 |
+
- original
|
| 15 |
+
task_categories:
|
| 16 |
+
- tabular-regression
|
| 17 |
+
- other
|
| 18 |
+
task_ids: []
|
| 19 |
+
tags:
|
| 20 |
+
- africa
|
| 21 |
+
- humanitarian
|
| 22 |
+
- hdx
|
| 23 |
+
- electric-sheep-africa
|
| 24 |
+
- climate-weather
|
| 25 |
+
- environment
|
| 26 |
+
- zmb
|
| 27 |
+
pretty_name: "Zambia: Rainfall Indicators at Subnational Level"
|
| 28 |
dataset_info:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
splits:
|
| 30 |
+
- name: train
|
| 31 |
+
num_examples: 147352
|
| 32 |
+
- name: test
|
| 33 |
+
num_examples: 36838
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
---
|
| 35 |
+
|
| 36 |
+
# Zambia: Rainfall Indicators at Subnational Level
|
| 37 |
+
|
| 38 |
+
**Publisher:** WFP - World Food Programme · **Source:** [HDX](https://data.humdata.org/dataset/zmb-rainfall-subnational) · **License:** `cc-by` · **Updated:** 2026-04-03
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## Abstract
|
| 43 |
+
|
| 44 |
+
This dataset contains dekadal rainfall indicators, computed from Climate Hazards Group InfraRed Precipitation satellite imagery with insitu Station data (CHIRPS) version 2 and the CHIRPS-GEFS short term rainfall forecasts, aggregated by subnational administrative units.
|
| 45 |
+
|
| 46 |
+
Included indicators are (for each dekad):
|
| 47 |
+
|
| 48 |
+
- 10 day rainfall [mm] (`rfh`)
|
| 49 |
+
- rainfall 1-month rolling aggregation [mm] (`r1h`)
|
| 50 |
+
- rainfall 3-month rolling aggregation [mm] (`r3h`)
|
| 51 |
+
- rainfall long term average [mm] (`rfh_avg`)
|
| 52 |
+
- rainfall 1-month rolling aggregation long term average [mm] (`r1h_avg`)
|
| 53 |
+
- rainfall 3-month rolling aggregation long term average [mm] (`r3h_avg`)
|
| 54 |
+
- rainfall anomaly [%] (`rfq`)
|
| 55 |
+
- rainfall 1-month anomaly [%] (`r1q`)
|
| 56 |
+
- rainfall 3-month anomaly [%] (`r3q`)
|
| 57 |
+
|
| 58 |
+
The administrative units used for aggregation are based on WFP data and contain a Pcode reference attributed to each unit. The number of input pixels used to create the aggregates, is provided in the `n_pixels` column. Finally, the `type` column indicates if the value is based on a forecast, a preliminary or a final product.
|
| 59 |
+
|
| 60 |
+
Forecasts are issued on the 6th, 16th, and 26th of each month for the upcoming 10-day period (dekad), then updated with improved versions on the 1st, 11th, and 21st.
|
| 61 |
+
Preliminary observations replace the previous dekad’s forecast on the 3rd, 13th, and 23rd, and are later replaced by final observations—published mid-month (13th or 23rd)—covering all three dekads of the prior month. Please find a summary below:
|
| 62 |
+
|
| 63 |
+
Publication Day: Forecast type, Covers (Dekad)
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
- 6th: Initial forecast, 11–20 of the same month
|
| 67 |
+
- 11th: Updated forecast, 1–10 of the same month
|
| 68 |
+
- 16th: Initial forecast, 21–end of the same month
|
| 69 |
+
- 21st: Updated forecast, 11–20 of the same month
|
| 70 |
+
- 26th: Initial forecast, 1–10 of the following month
|
| 71 |
+
|
| 72 |
+
For more on CHIRPS-GEFS forecasts, see: https://www.chc.ucsb.edu/data/chirps-gefs
|
| 73 |
+
|
| 74 |
+
For further details, please see the methodology section.
|
| 75 |
+
|
| 76 |
+
Each row in this dataset represents time-series observations. Temporal coverage is indicated by the `date` column(s). Geographic scope: **ZMB**.
|
| 77 |
+
|
| 78 |
+
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## Dataset Characteristics
|
| 83 |
+
|
| 84 |
+
| | |
|
| 85 |
+
|---|---|
|
| 86 |
+
| **Domain** | Climate and environment |
|
| 87 |
+
| **Unit of observation** | Time-series observations |
|
| 88 |
+
| **Rows (total)** | 184,190 |
|
| 89 |
+
| **Columns** | 17 (12 numeric, 4 categorical, 1 datetime) |
|
| 90 |
+
| **Train split** | 147,352 rows |
|
| 91 |
+
| **Test split** | 36,838 rows |
|
| 92 |
+
| **Geographic scope** | ZMB |
|
| 93 |
+
| **Publisher** | WFP - World Food Programme |
|
| 94 |
+
| **HDX last updated** | 2026-04-03 |
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
## Variables
|
| 99 |
+
|
| 100 |
+
**Geographic** — `n_pixels` (range 16.0–4287.0).
|
| 101 |
+
|
| 102 |
+
**Temporal** — `date`.
|
| 103 |
+
|
| 104 |
+
**Identifier / Metadata** — `adm_id` (range 900844.0–1009334.0), `pcode` (ZM101, ZM104007, ZM105002), `esa_source` (HDX), `esa_processed` (2026-04-07).
|
| 105 |
+
|
| 106 |
+
**Other** — `adm_level` (range 1.0–2.0), `rfh` (range 0.0–255.9512), `rfh_avg` (range 0.0–126.8143), `r1h` (range 0.0–575.973), `r1h_avg` (range 0.0–330.1505) and 6 others.
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## Quick Start
|
| 111 |
+
|
| 112 |
+
```python
|
| 113 |
+
from datasets import load_dataset
|
| 114 |
+
|
| 115 |
+
ds = load_dataset("electricsheepafrica/africa-zmb-rainfall-subnational")
|
| 116 |
+
train = ds["train"].to_pandas()
|
| 117 |
+
test = ds["test"].to_pandas()
|
| 118 |
+
|
| 119 |
+
print(train.shape)
|
| 120 |
+
train.head()
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## Schema
|
| 126 |
+
|
| 127 |
+
| Column | Type | Null % | Range / Sample Values |
|
| 128 |
+
|---|---|---|---|
|
| 129 |
+
| `date` | datetime64[ns] | 0.0% | |
|
| 130 |
+
| `adm_level` | int64 | 0.0% | 1.0 – 2.0 (mean 1.9115) |
|
| 131 |
+
| `adm_id` | int64 | 0.0% | 900844.0 – 1009334.0 (mean 999687.0265) |
|
| 132 |
+
| `pcode` | object | 0.0% | ZM101, ZM104007, ZM105002 |
|
| 133 |
+
| `n_pixels` | float64 | 0.0% | 16.0 – 4287.0 (mean 436.9027) |
|
| 134 |
+
| `rfh` | float64 | 0.0% | 0.0 – 255.9512 (mean 27.2744) |
|
| 135 |
+
| `rfh_avg` | float64 | 0.0% | 0.0 – 126.8143 (mean 27.7041) |
|
| 136 |
+
| `r1h` | float64 | 0.1% | 0.0 – 575.973 (mean 81.7575) |
|
| 137 |
+
| `r1h_avg` | float64 | 0.1% | 0.0 – 330.1505 (mean 83.0071) |
|
| 138 |
+
| `r3h` | float64 | 0.5% | 0.0 – 1153.1052 (mean 243.7905) |
|
| 139 |
+
| `r3h_avg` | float64 | 0.5% | 0.0 – 844.0457 (mean 247.8506) |
|
| 140 |
+
| `rfq` | float64 | 0.0% | 9.9511 – 617.6783 (mean 100.0855) |
|
| 141 |
+
| `r1q` | float64 | 0.1% | 9.1487 – 520.4519 (mean 100.2781) |
|
| 142 |
+
| `r3q` | float64 | 0.5% | 17.7114 – 495.4942 (mean 100.1718) |
|
| 143 |
+
| `version` | object | 0.0% | final, prelim, forecast |
|
| 144 |
+
| `esa_source` | object | 0.0% | HDX |
|
| 145 |
+
| `esa_processed` | object | 0.0% | 2026-04-07 |
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## Numeric Summary
|
| 150 |
+
|
| 151 |
+
| Column | Min | Max | Mean | Median |
|
| 152 |
+
|---|---|---|---|---|
|
| 153 |
+
| `adm_level` | 1.0 | 2.0 | 1.9115 | 2.0 |
|
| 154 |
+
| `adm_id` | 900844.0 | 1009334.0 | 999687.0265 | 1009278.0 |
|
| 155 |
+
| `n_pixels` | 16.0 | 4287.0 | 436.9027 | 214.0 |
|
| 156 |
+
| `rfh` | 0.0 | 255.9512 | 27.2744 | 5.8488 |
|
| 157 |
+
| `rfh_avg` | 0.0 | 126.8143 | 27.7041 | 8.5587 |
|
| 158 |
+
| `r1h` | 0.0 | 575.973 | 81.7575 | 26.3316 |
|
| 159 |
+
| `r1h_avg` | 0.0 | 330.1505 | 83.0071 | 29.3096 |
|
| 160 |
+
| `r3h` | 0.0 | 1153.1052 | 243.7905 | 146.9144 |
|
| 161 |
+
| `r3h_avg` | 0.0 | 844.0457 | 247.8506 | 158.035 |
|
| 162 |
+
| `rfq` | 9.9511 | 617.6783 | 100.0855 | 99.9874 |
|
| 163 |
+
| `r1q` | 9.1487 | 520.4519 | 100.2781 | 99.9037 |
|
| 164 |
+
| `r3q` | 17.7114 | 495.4942 | 100.1718 | 98.7447 |
|
| 165 |
+
|
| 166 |
+
---
|
| 167 |
+
|
| 168 |
+
## Curation
|
| 169 |
+
|
| 170 |
+
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`. 1 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.
|
| 171 |
+
|
| 172 |
+
---
|
| 173 |
+
|
| 174 |
+
## Limitations
|
| 175 |
+
|
| 176 |
+
- Data originates from WFP - World Food Programme and has not been independently validated by ESA.
|
| 177 |
+
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
|
| 178 |
+
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/zmb-rainfall-subnational) for the publisher's own methodology notes and caveats.
|
| 179 |
+
|
| 180 |
+
---
|
| 181 |
+
|
| 182 |
+
## Citation
|
| 183 |
+
|
| 184 |
+
```bibtex
|
| 185 |
+
@dataset{hdx_africa_zmb_rainfall_subnational,
|
| 186 |
+
title = {Zambia: Rainfall Indicators at Subnational Level},
|
| 187 |
+
author = {WFP - World Food Programme},
|
| 188 |
+
year = {2026},
|
| 189 |
+
url = {https://data.humdata.org/dataset/zmb-rainfall-subnational},
|
| 190 |
+
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
|
| 191 |
+
}
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
---
|
| 195 |
+
|
| 196 |
+
*[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*
|