Kossisoroyce commited on
Commit
6568b43
·
verified ·
1 Parent(s): ca45eef

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: 7275993
69
- num_examples: 27705
70
- - name: test
71
- num_bytes: 1818903
72
- num_examples: 6927
73
- download_size: 1478083
74
- dataset_size: 9094896
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
+ - 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
+ - ports
25
+ - trade
26
+ - egy
27
+ pretty_name: "Egypt: Daily Port Activity Data and Shipment Estimates"
28
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  splits:
30
+ - name: train
31
+ num_examples: 27705
32
+ - name: test
33
+ num_examples: 6926
 
 
 
 
 
 
 
 
 
 
 
34
  ---
35
+
36
+ # Egypt: Daily Port Activity Data and Shipment Estimates
37
+
38
+ **Publisher:** PortWatch · **Source:** [HDX](https://data.humdata.org/dataset/egypt-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 Egypt.
45
+
46
+ Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-04-21. Geographic scope: **EGY**.
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)** | 34,632 |
59
+ | **Columns** | 31 (24 numeric, 6 categorical, 0 datetime) |
60
+ | **Train split** | 27,705 rows |
61
+ | **Test split** | 6,926 rows |
62
+ | **Geographic scope** | EGY |
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` (Egypt), `iso3` (EGY), `portcalls_dry_bulk` (range 0.0–10.0) and 8 others.
71
+
72
+ **Temporal** — `date`, `month` (range 1.0–12.0).
73
+
74
+ **Identifier / Metadata** — `portid` (port23, port71, port191), `portname` (Alexandria, As Suways, Safaga), `esa_source` (HDX), `esa_processed` (2026-04-23).
75
+
76
+ **Other** — `portcalls_container` (range 0.0–9.0), `portcalls_general_cargo` (range 0.0–16.0), `portcalls_roro` (range 0.0–5.0), `portcalls_tanker` (range 0.0–7.0), `portcalls_cargo` (range 0.0–26.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-egypt")
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% | port23, port71, port191 |
104
+ | `portname` | object | 0.0% | Alexandria, As Suways, Safaga |
105
+ | `country` | object | 0.0% | Egypt |
106
+ | `iso3` | object | 0.0% | EGY |
107
+ | `portcalls_container` | int64 | 0.0% | 0.0 – 9.0 (mean 0.6792) |
108
+ | `portcalls_dry_bulk` | int64 | 0.0% | 0.0 – 10.0 (mean 0.4381) |
109
+ | `portcalls_general_cargo` | int64 | 0.0% | 0.0 – 16.0 (mean 0.5248) |
110
+ | `portcalls_roro` | int64 | 0.0% | 0.0 – 5.0 (mean 0.0825) |
111
+ | `portcalls_tanker` | int64 | 0.0% | 0.0 – 7.0 (mean 0.3509) |
112
+ | `portcalls_cargo` | int64 | 0.0% | 0.0 – 26.0 (mean 1.7246) |
113
+ | `portcalls` | int64 | 0.0% | 0.0 – 28.0 (mean 2.0755) |
114
+ | `import_container` | int64 | 0.0% | 0.0 – 287158.0 (mean 3478.7853) |
115
+ | `import_dry_bulk` | int64 | 0.0% | 0.0 – 374413.0 (mean 11405.4003) |
116
+ | `import_general_cargo` | int64 | 0.0% | 0.0 – 55007.0 (mean 774.3546) |
117
+ | `import_roro` | int64 | 0.0% | 0.0 – 11281.0 (mean 62.2823) |
118
+ | `import_tanker` | int64 | 0.0% | 0.0 – 606437.0 (mean 3920.0105) |
119
+ | `import_cargo` | int64 | 0.0% | 0.0 – 436273.0 (mean 15720.9812) |
120
+ | `import` | int64 | 0.0% | 0.0 – 618671.0 (mean 19641.0458) |
121
+ | `export_container` | int64 | 0.0% | 0.0 – 244244.0 (mean 3589.924) |
122
+ | `export_dry_bulk` | int64 | 0.0% | 0.0 – 172421.0 (mean 2910.501) |
123
+ | `export_general_cargo` | int64 | 0.0% | 0.0 – 29727.0 (mean 592.8913) |
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-23 |
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 | 9.0 | 0.6792 | 0.0 |
141
+ | `portcalls_dry_bulk` | 0.0 | 10.0 | 0.4381 | 0.0 |
142
+ | `portcalls_general_cargo` | 0.0 | 16.0 | 0.5248 | 0.0 |
143
+ | `portcalls_roro` | 0.0 | 5.0 | 0.0825 | 0.0 |
144
+ | `portcalls_tanker` | 0.0 | 7.0 | 0.3509 | 0.0 |
145
+ | `portcalls_cargo` | 0.0 | 26.0 | 1.7246 | 0.0 |
146
+ | `portcalls` | 0.0 | 28.0 | 2.0755 | 1.0 |
147
+ | `import_container` | 0.0 | 287158.0 | 3478.7853 | 0.0 |
148
+ | `import_dry_bulk` | 0.0 | 374413.0 | 11405.4003 | 0.0 |
149
+ | `import_general_cargo` | 0.0 | 55007.0 | 774.3546 | 0.0 |
150
+ | `import_roro` | 0.0 | 11281.0 | 62.2823 | 0.0 |
151
+ | `import_tanker` | 0.0 | 606437.0 | 3920.0105 | 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/egypt-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_egypt,
173
+ title = {Egypt: Daily Port Activity Data and Shipment Estimates},
174
+ author = {PortWatch},
175
+ year = {2026},
176
+ url = {https://data.humdata.org/dataset/egypt-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.*