Kossisoroyce commited on
Commit
49ad830
·
verified ·
1 Parent(s): 5c208db

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +179 -78
README.md CHANGED
@@ -1,82 +1,183 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: date
5
- dtype: timestamp[ns, tz=UTC]
6
- - name: year
7
- dtype: int64
8
- - name: month
9
- dtype: int64
10
- - name: day
11
- dtype: int64
12
- - name: portid
13
- dtype: string
14
- - name: portname
15
- dtype: string
16
- - name: country
17
- dtype: string
18
- - name: iso3
19
- dtype: string
20
- - name: portcalls_container
21
- dtype: int64
22
- - name: portcalls_dry_bulk
23
- dtype: int64
24
- - name: portcalls_general_cargo
25
- dtype: int64
26
- - name: portcalls_roro
27
- dtype: int64
28
- - name: portcalls_tanker
29
- dtype: int64
30
- - name: portcalls_cargo
31
- dtype: int64
32
- - name: portcalls
33
- dtype: int64
34
- - name: import_container
35
- dtype: int64
36
- - name: import_dry_bulk
37
- dtype: int64
38
- - name: import_general_cargo
39
- dtype: int64
40
- - name: import_roro
41
- dtype: int64
42
- - name: import_tanker
43
- dtype: int64
44
- - name: import_cargo
45
- dtype: int64
46
- - name: import
47
- dtype: int64
48
- - name: export_container
49
- dtype: int64
50
- - name: export_dry_bulk
51
- dtype: int64
52
- - name: export_general_cargo
53
- dtype: int64
54
- - name: export_roro
55
- dtype: int64
56
- - name: export_tanker
57
- dtype: int64
58
- - name: export_cargo
59
- dtype: int64
60
- - name: export
61
- dtype: int64
62
- - name: esa_source
63
- dtype: string
64
- - name: esa_processed
65
- dtype: string
66
  splits:
67
- - name: train
68
- num_bytes: 560453
69
- num_examples: 2131
70
- - name: test
71
- num_bytes: 140179
72
- num_examples: 533
73
- download_size: 161172
74
- dataset_size: 700632
75
- configs:
76
- - config_name: default
77
- data_files:
78
- - split: train
79
- path: data/train-*
80
- - split: test
81
- path: data/test-*
82
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license: other
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1K<n<10K
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
+ - ports
25
+ - trade
26
+ - dji
27
+ pretty_name: "Djibouti: Daily Port Activity Data and Shipment Estimates"
28
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  splits:
30
+ - name: train
31
+ num_examples: 2131
32
+ - name: test
33
+ num_examples: 532
 
 
 
 
 
 
 
 
 
 
 
34
  ---
35
+
36
+ # Djibouti: Daily Port Activity Data and Shipment Estimates
37
+
38
+ **Publisher:** PortWatch · **Source:** [HDX](https://data.humdata.org/dataset/djibouti-daily-port-activity-data-and-shipment-estimates) · **License:** `hdx-other` · **Updated:** 2026-04-21
39
+
40
+ ---
41
+
42
+ ## Abstract
43
+
44
+ Daily count of port calls, estimates of incoming shipment volumes and outgoing shipment volumes (in metric tons) for ports in Djibouti.
45
+
46
+ Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-04-21. Geographic scope: **DJI**.
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** | Country-level aggregates |
58
+ | **Rows (total)** | 2,664 |
59
+ | **Columns** | 31 (24 numeric, 6 categorical, 0 datetime) |
60
+ | **Train split** | 2,131 rows |
61
+ | **Test split** | 532 rows |
62
+ | **Geographic scope** | DJI |
63
+ | **Publisher** | PortWatch |
64
+ | **HDX last updated** | 2026-04-21 |
65
+
66
+ ---
67
+
68
+ ## Variables
69
+
70
+ **Geographic** — `year` (range 2019.0–2026.0), `day` (range 1.0–31.0), `country` (Djibouti), `iso3` (DJI), `portcalls_dry_bulk` (range 0.0–4.0) and 8 others.
71
+
72
+ **Temporal** — `date`, `month` (range 1.0–12.0).
73
+
74
+ **Identifier / Metadata** — `portid` (port294), `portname` (Djibouti), `esa_source` (HDX), `esa_processed` (2026-04-24).
75
+
76
+ **Other** — `portcalls_container` (range 0.0–6.0), `portcalls_general_cargo` (range 0.0–4.0), `portcalls_roro` (range 0.0–3.0), `portcalls_tanker` (range 0.0–4.0), `portcalls_cargo` (range 0.0–9.0) and 7 others.
77
+
78
+ ---
79
+
80
+ ## Quick Start
81
+
82
+ ```python
83
+ from datasets import load_dataset
84
+
85
+ ds = load_dataset("electricsheepafrica/africa-ports-djibouti")
86
+ train = ds["train"].to_pandas()
87
+ test = ds["test"].to_pandas()
88
+
89
+ print(train.shape)
90
+ train.head()
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Schema
96
+
97
+ | Column | Type | Null % | Range / Sample Values |
98
+ |---|---|---|---|
99
+ | `date` | datetime64[ns, UTC] | 0.0% | |
100
+ | `year` | int64 | 0.0% | 2019.0 – 2026.0 (mean 2022.1607) |
101
+ | `month` | int64 | 0.0% | 1.0 – 12.0 (mean 6.3536) |
102
+ | `day` | int64 | 0.0% | 1.0 – 31.0 (mean 15.6813) |
103
+ | `portid` | object | 0.0% | port294 |
104
+ | `portname` | object | 0.0% | Djibouti |
105
+ | `country` | object | 0.0% | Djibouti |
106
+ | `iso3` | object | 0.0% | DJI |
107
+ | `portcalls_container` | int64 | 0.0% | 0.0 – 6.0 (mean 1.4692) |
108
+ | `portcalls_dry_bulk` | int64 | 0.0% | 0.0 – 4.0 (mean 0.6077) |
109
+ | `portcalls_general_cargo` | int64 | 0.0% | 0.0 – 4.0 (mean 0.5338) |
110
+ | `portcalls_roro` | int64 | 0.0% | 0.0 – 3.0 (mean 0.2083) |
111
+ | `portcalls_tanker` | int64 | 0.0% | 0.0 – 4.0 (mean 0.7316) |
112
+ | `portcalls_cargo` | int64 | 0.0% | 0.0 – 9.0 (mean 2.8191) |
113
+ | `portcalls` | int64 | 0.0% | 0.0 – 11.0 (mean 3.5507) |
114
+ | `import_container` | int64 | 0.0% | 0.0 – 88612.0 (mean 9504.664) |
115
+ | `import_dry_bulk` | int64 | 0.0% | 0.0 – 168340.0 (mean 13763.7252) |
116
+ | `import_general_cargo` | int64 | 0.0% | 0.0 – 27112.0 (mean 1723.4546) |
117
+ | `import_roro` | int64 | 0.0% | 0.0 – 5450.0 (mean 110.4703) |
118
+ | `import_tanker` | int64 | 0.0% | 0.0 – 111380.0 (mean 14771.8408) |
119
+ | `import_cargo` | int64 | 0.0% | 0.0 – 193610.0 (mean 25102.7117) |
120
+ | `import` | int64 | 0.0% | 0.0 – 257073.0 (mean 39874.7898) |
121
+ | `export_container` | int64 | 0.0% | 0.0 – 38191.0 (mean 1514.2842) |
122
+ | `export_dry_bulk` | int64 | 0.0% | 0.0 – 54512.0 (mean 244.1517) |
123
+ | `export_general_cargo` | int64 | 0.0% | 0.0 – 17384.0 (mean 346.5086) |
124
+ | `export_roro` | int64 | 0.0% | |
125
+ | `export_tanker` | int64 | 0.0% | |
126
+ | `export_cargo` | int64 | 0.0% | |
127
+ | `export` | int64 | 0.0% | |
128
+ | `esa_source` | object | 0.0% | HDX |
129
+ | `esa_processed` | object | 0.0% | 2026-04-24 |
130
+
131
+ ---
132
+
133
+ ## Numeric Summary
134
+
135
+ | Column | Min | Max | Mean | Median |
136
+ |---|---|---|---|---|
137
+ | `year` | 2019.0 | 2026.0 | 2022.1607 | 2022.0 |
138
+ | `month` | 1.0 | 12.0 | 6.3536 | 6.0 |
139
+ | `day` | 1.0 | 31.0 | 15.6813 | 16.0 |
140
+ | `portcalls_container` | 0.0 | 6.0 | 1.4692 | 1.0 |
141
+ | `portcalls_dry_bulk` | 0.0 | 4.0 | 0.6077 | 0.0 |
142
+ | `portcalls_general_cargo` | 0.0 | 4.0 | 0.5338 | 0.0 |
143
+ | `portcalls_roro` | 0.0 | 3.0 | 0.2083 | 0.0 |
144
+ | `portcalls_tanker` | 0.0 | 4.0 | 0.7316 | 1.0 |
145
+ | `portcalls_cargo` | 0.0 | 9.0 | 2.8191 | 3.0 |
146
+ | `portcalls` | 0.0 | 11.0 | 3.5507 | 3.0 |
147
+ | `import_container` | 0.0 | 88612.0 | 9504.664 | 6729.0 |
148
+ | `import_dry_bulk` | 0.0 | 168340.0 | 13763.7252 | 0.0 |
149
+ | `import_general_cargo` | 0.0 | 27112.0 | 1723.4546 | 0.0 |
150
+ | `import_roro` | 0.0 | 5450.0 | 110.4703 | 0.0 |
151
+ | `import_tanker` | 0.0 | 111380.0 | 14771.8408 | 0.0 |
152
+
153
+ ---
154
+
155
+ ## Curation
156
+
157
+ 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.
158
+
159
+ ---
160
+
161
+ ## Limitations
162
+
163
+ - Data originates from PortWatch and has not been independently validated by ESA.
164
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
165
+ - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/djibouti-daily-port-activity-data-and-shipment-estimates) for the publisher's own methodology notes and caveats.
166
+
167
+ ---
168
+
169
+ ## Citation
170
+
171
+ ```bibtex
172
+ @dataset{hdx_africa_ports_djibouti,
173
+ title = {Djibouti: Daily Port Activity Data and Shipment Estimates},
174
+ author = {PortWatch},
175
+ year = {2026},
176
+ url = {https://data.humdata.org/dataset/djibouti-daily-port-activity-data-and-shipment-estimates},
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.*