Kossisoroyce commited on
Commit
37cb056
·
verified ·
1 Parent(s): 3601776

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +179 -92
README.md CHANGED
@@ -1,96 +1,183 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: reporting_country
5
- dtype: string
6
- - name: reporting_country_code
7
- dtype: string
8
- - name: border_point
9
- dtype: string
10
- - name: source
11
- dtype: string
12
- - name: source_country_code
13
- dtype: string
14
- - name: destination
15
- dtype: string
16
- - name: destination_country_code
17
- dtype: string
18
- - name: cpcv2
19
- dtype: string
20
- - name: product
21
- dtype: string
22
- - name: indicator_name
23
- dtype: string
24
- - name: start_date
25
- dtype: timestamp[ns]
26
- - name: period_date
27
- dtype: timestamp[ns]
28
- - name: value
29
- dtype: float64
30
- - name: flow_type
31
- dtype: string
32
- - name: trade_type
33
- dtype: string
34
- - name: collection_status
35
- dtype: string
36
- - name: source_organization
37
- dtype: string
38
- - name: source_document
39
- dtype: string
40
- - name: dataseries_name
41
- dtype: string
42
- - name: dataseries
43
- dtype: int64
44
- - name: unit
45
- dtype: string
46
- - name: unit_type
47
- dtype: string
48
- - name: unit_name
49
- dtype: string
50
- - name: status
51
- dtype: string
52
- - name: common_unit
53
- dtype: string
54
- - name: common_unit_quantity
55
- dtype: float64
56
- - name: reporting_country_geographic_group
57
- dtype: string
58
- - name: reporting_country_fewsnet_region
59
- dtype: string
60
- - name: source_geographic_group
61
- dtype: string
62
- - name: source_fewsnet_region
63
- dtype: string
64
- - name: destination_geographic_group
65
- dtype: string
66
- - name: destination_fewsnet_region
67
- dtype: string
68
- - name: value_one_month_ago
69
- dtype: float64
70
- - name: pct_change_from_one_month_ago
71
- dtype: float64
72
- - name: collection_schedule
73
- dtype: string
74
- - name: data_usage_policy
75
- dtype: string
76
- - name: esa_source
77
- dtype: string
78
- - name: esa_processed
79
- dtype: string
80
  splits:
81
- - name: train
82
- num_bytes: 21975144
83
- num_examples: 34144
84
- - name: test
85
- num_bytes: 5487220
86
- num_examples: 8536
87
- download_size: 2024411
88
- dataset_size: 27462364
89
- configs:
90
- - config_name: default
91
- data_files:
92
- - split: train
93
- path: data/train-*
94
- - split: test
95
- path: data/test-*
96
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - 10K<n<100K
13
+ source_datasets:
14
+ - original
15
+ task_categories:
16
+ - tabular-classification
17
+ - tabular-regression
18
+ task_ids: []
19
+ tags:
20
+ - africa
21
+ - humanitarian
22
+ - hdx
23
+ - electric-sheep-africa
24
+ - eastern-africa
25
+ - trade
26
+ - tza
27
+ pretty_name: "United Republic of Tanzania Daily FEWS NET Cross Border Trade Data"
28
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  splits:
30
+ - name: train
31
+ num_examples: 34144
32
+ - name: test
33
+ num_examples: 8536
 
 
 
 
 
 
 
 
 
 
 
34
  ---
35
+
36
+ # United Republic of Tanzania Daily FEWS NET Cross Border Trade Data
37
+
38
+ **Publisher:** FEWS NET · **Source:** [HDX](https://data.humdata.org/dataset/daily_cross_border_trade_for_united_republic_of_tanzania_6824) · **License:** `cc-by` · **Updated:** 2026-03-28
39
+
40
+ ---
41
+
42
+ ## Abstract
43
+
44
+ United Republic of Tanzania Daily cross border trade data collected by FEWS NET since 2010.
45
+
46
+ Each row in this dataset represents first-level administrative unit observations. Temporal coverage is indicated by the `start_date`, `period_date` column(s). Geographic scope: **TZA**.
47
+
48
+ *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
49
+
50
+ ---
51
+
52
+ ## Dataset Characteristics
53
+
54
+ | | |
55
+ |---|---|
56
+ | **Domain** | Humanitarian and development data |
57
+ | **Unit of observation** | First-level administrative unit observations |
58
+ | **Rows (total)** | 42,680 |
59
+ | **Columns** | 38 (5 numeric, 31 categorical, 2 datetime) |
60
+ | **Train split** | 34,144 rows |
61
+ | **Test split** | 8,536 rows |
62
+ | **Geographic scope** | TZA |
63
+ | **Publisher** | FEWS NET |
64
+ | **HDX last updated** | 2026-03-28 |
65
+
66
+ ---
67
+
68
+ ## Variables
69
+
70
+ **Geographic** — `reporting_country` (Tanzania, United Republic of, Kenya, Malawi), `reporting_country_code` (TZ, KE, MW), `source_country_code` (TZ, KE, BI), `destination_country_code` (KE, BI, TZ), `flow_type` and 8 others.
71
+
72
+ **Temporal** — `start_date`, `period_date`, `value_one_month_ago` (range 0.2–83640500.0), `pct_change_from_one_month_ago` (range -100.0–40188788.8889).
73
+
74
+ **Outcome / Measurement** — `value` (range 0.0–334562000.0).
75
+
76
+ **Identifier / Metadata** — `source` (Tanzania, United Republic of, Kenya, Burundi), `indicator_name` (TradeFlowQuantity), `source_organization`, `source_document`, `dataseries_name` and 4 others.
77
+
78
+ **Other** — `border_point` (Kibande, Taveta, Manyovu), `destination` (Kenya, Burundi, Tanzania, United Republic of), `cpcv2` (P23161AA, R01122AC, R01701AA), `product` (Rice (Milled), Maize Grain (White), Beans (mixed)), `collection_status` and 6 others.
79
+
80
+ ---
81
+
82
+ ## Quick Start
83
+
84
+ ```python
85
+ from datasets import load_dataset
86
+
87
+ ds = load_dataset("electricsheepafrica/africa-daily-cross-border-trade-for-united-republic-of-tanzania-6824")
88
+ train = ds["train"].to_pandas()
89
+ test = ds["test"].to_pandas()
90
+
91
+ print(train.shape)
92
+ train.head()
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Schema
98
+
99
+ | Column | Type | Null % | Range / Sample Values |
100
+ |---|---|---|---|
101
+ | `reporting_country` | object | 0.0% | Tanzania, United Republic of, Kenya, Malawi |
102
+ | `reporting_country_code` | object | 0.0% | TZ, KE, MW |
103
+ | `border_point` | object | 4.8% | Kibande, Taveta, Manyovu |
104
+ | `source` | object | 0.0% | Tanzania, United Republic of, Kenya, Burundi |
105
+ | `source_country_code` | object | 0.0% | TZ, KE, BI |
106
+ | `destination` | object | 0.0% | Kenya, Burundi, Tanzania, United Republic of |
107
+ | `destination_country_code` | object | 0.0% | KE, BI, TZ |
108
+ | `cpcv2` | object | 0.0% | P23161AA, R01122AC, R01701AA |
109
+ | `product` | object | 0.0% | Rice (Milled), Maize Grain (White), Beans (mixed) |
110
+ | `indicator_name` | object | 0.0% | TradeFlowQuantity |
111
+ | `start_date` | datetime64[ns] | 0.0% | |
112
+ | `period_date` | datetime64[ns] | 0.0% | |
113
+ | `value` | float64 | 0.0% | 0.0 – 334562000.0 (mean 64106.3632) |
114
+ | `flow_type` | object | 0.0% | |
115
+ | `trade_type` | object | 0.0% | |
116
+ | `collection_status` | object | 0.0% | |
117
+ | `source_organization` | object | 0.0% | |
118
+ | `source_document` | object | 0.0% | |
119
+ | `dataseries_name` | object | 0.0% | |
120
+ | `dataseries` | int64 | 0.0% | 27989.0 – 7051434.0 (mean 6290835.0721) |
121
+ | `unit` | object | 0.0% | |
122
+ | `unit_type` | object | 0.0% | |
123
+ | `unit_name` | object | 0.0% | |
124
+ | `status` | object | 0.0% | |
125
+ | `common_unit` | object | 0.0% | |
126
+ | `common_unit_quantity` | float64 | 0.0% | 0.0 – 334562000.0 (mean 279649.6762) |
127
+ | `reporting_country_geographic_group` | object | 0.0% | |
128
+ | `reporting_country_fewsnet_region` | object | 0.0% | |
129
+ | `source_geographic_group` | object | 0.0% | |
130
+ | `source_fewsnet_region` | object | 0.0% | |
131
+ | `destination_geographic_group` | object | 0.0% | |
132
+ | `destination_fewsnet_region` | object | 0.0% | |
133
+ | `value_one_month_ago` | float64 | 76.7% | 0.2 – 83640500.0 (mean 63837.2234) |
134
+ | `pct_change_from_one_month_ago` | float64 | 76.7% | -100.0 – 40188788.8889 (mean 5965.1906) |
135
+ | `collection_schedule` | object | 0.0% | |
136
+ | `data_usage_policy` | object | 0.0% | |
137
+ | `esa_source` | object | 0.0% | |
138
+ | `esa_processed` | object | 0.0% | |
139
+
140
+ ---
141
+
142
+ ## Numeric Summary
143
+
144
+ | Column | Min | Max | Mean | Median |
145
+ |---|---|---|---|---|
146
+ | `value` | 0.0 | 334562000.0 | 64106.3632 | 0.0 |
147
+ | `dataseries` | 27989.0 | 7051434.0 | 6290835.0721 | 6606785.0 |
148
+ | `common_unit_quantity` | 0.0 | 334562000.0 | 279649.6762 | 0.0 |
149
+ | `value_one_month_ago` | 0.2 | 83640500.0 | 63837.2234 | 274.25 |
150
+ | `pct_change_from_one_month_ago` | -100.0 | 40188788.8889 | 5965.1906 | 215.6977 |
151
+
152
+ ---
153
+
154
+ ## Curation
155
+
156
+ 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`. 10 column(s) with >80% missing values were removed: `id`, `value_one_year_ago`, `value_two_years_ago`, `value_three_years_ago`, `value_four_years_ago`, `value_five_years_ago`.... 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.
157
+
158
+ ---
159
+
160
+ ## Limitations
161
+
162
+ - Data originates from FEWS NET and has not been independently validated by ESA.
163
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
164
+ - The following columns have >20% missing values and should be treated with caution in modelling: `value_one_month_ago`, `pct_change_from_one_month_ago`.
165
+ - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/daily_cross_border_trade_for_united_republic_of_tanzania_6824) for the publisher's own methodology notes and caveats.
166
+
167
+ ---
168
+
169
+ ## Citation
170
+
171
+ ```bibtex
172
+ @dataset{hdx_africa_daily_cross_border_trade_for_united_republic_of_tanzania_6824,
173
+ title = {United Republic of Tanzania Daily FEWS NET Cross Border Trade Data},
174
+ author = {FEWS NET},
175
+ year = {2026},
176
+ url = {https://data.humdata.org/dataset/daily_cross_border_trade_for_united_republic_of_tanzania_6824},
177
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
178
+ }
179
+ ```
180
+
181
+ ---
182
+
183
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*