Dataset Viewer
Auto-converted to Parquet Duplicate
country_name
stringclasses
1 value
country_iso3
stringclasses
1 value
partner_name
stringclasses
214 values
partner_iso3
stringclasses
213 values
year
int64
2k
2.02k
flow
stringclasses
1 value
trade_value_usd
float64
1
4.59B
Ghana
GHA
Antigua and Barbuda
ATG
2,000
exports
151,559
Ghana
GHA
Argentina
ARG
2,000
exports
20,553
Ghana
GHA
Australia
AUS
2,000
exports
2,081,395
Ghana
GHA
Austria
AUT
2,000
exports
30,811
Ghana
GHA
Bahamas
BHS
2,000
exports
18,406,555
Ghana
GHA
Bangladesh
BGD
2,000
exports
330,635
Ghana
GHA
Barbados
BRB
2,000
exports
16,911
Ghana
GHA
Afghanistan
AFG
2,000
exports
401,883
Ghana
GHA
Algeria
DZA
2,000
exports
80,290
Ghana
GHA
Angola
AGO
2,000
exports
25,544
Ghana
GHA
Belgium
BEL
2,000
exports
29,971,383
Ghana
GHA
Bolivia (Plurinational State of)
BOL
2,000
exports
29,690
Ghana
GHA
Botswana
BWA
2,000
exports
15,643
Ghana
GHA
Brazil
BRA
2,000
exports
924,225
Ghana
GHA
Brunei Darussalam
BRN
2,000
exports
9,881
Ghana
GHA
Bulgaria
BGR
2,000
exports
362,147
Ghana
GHA
Cameroon
CMR
2,000
exports
691,454
Ghana
GHA
Canada
CAN
2,000
exports
1,538,349
Ghana
GHA
Sri Lanka
LKA
2,000
exports
1,191,282
Ghana
GHA
Chile
CHL
2,000
exports
25,023
Ghana
GHA
China
CHN
2,000
exports
26,096,352
Ghana
GHA
Colombia
COL
2,000
exports
874
Ghana
GHA
Congo
COG
2,000
exports
42,275
Ghana
GHA
Dem. Rep. of the Congo
COD
2,000
exports
145,329
Ghana
GHA
Cuba
CUB
2,000
exports
26,192
Ghana
GHA
Cyprus
CYP
2,000
exports
23,626,928
Ghana
GHA
Czechia
CZE
2,000
exports
237,474
Ghana
GHA
Benin
BEN
2,000
exports
10,394,834
Ghana
GHA
Ethiopia
ETH
2,000
exports
3,190
Ghana
GHA
Faroe Isds
FRO
2,000
exports
86
Ghana
GHA
Finland
FIN
2,000
exports
793,413
Ghana
GHA
France
FRA
2,000
exports
39,346,326
Ghana
GHA
Gabon
GAB
2,000
exports
61,729
Ghana
GHA
Denmark
DNK
2,000
exports
6,615,145
Ghana
GHA
Dominica
DMA
2,000
exports
9,317
Ghana
GHA
Dominican Rep.
DOM
2,000
exports
120,750
Ghana
GHA
Equatorial Guinea
GNQ
2,000
exports
195,994
Ghana
GHA
Gambia
GMB
2,000
exports
501,232
Ghana
GHA
Guatemala
GTM
2,000
exports
4,437
Ghana
GHA
Hungary
HUN
2,000
exports
1,681
Ghana
GHA
Germany
DEU
2,000
exports
84,474,241
Ghana
GHA
Gibraltar
GIB
2,000
exports
8,790,194
Ghana
GHA
Greece
GRC
2,000
exports
3,031,311
Ghana
GHA
Guinea
GIN
2,000
exports
310,364
Ghana
GHA
China, Hong Kong SAR
HKG
2,000
exports
2,122,636
Ghana
GHA
Iran
IRN
2,000
exports
406,841
Ghana
GHA
Ireland
IRL
2,000
exports
13,319,808
Ghana
GHA
Israel
ISR
2,000
exports
6,154,217
Ghana
GHA
Iceland
ISL
2,000
exports
5
Ghana
GHA
Indonesia
IDN
2,000
exports
2,308,878
Ghana
GHA
Italy
ITA
2,000
exports
46,122,046
Ghana
GHA
CΓ΄te d'Ivoire
CIV
2,000
exports
10,002,975
Ghana
GHA
Jamaica
JAM
2,000
exports
13,601,776
Ghana
GHA
Japan
JPN
2,000
exports
22,563,133
Ghana
GHA
Kenya
KEN
2,000
exports
31,029
Ghana
GHA
Rep. of Korea
KOR
2,000
exports
784,504
Ghana
GHA
Kuwait
KWT
2,000
exports
32,395
Ghana
GHA
Lebanon
LBN
2,000
exports
1,137,460
Ghana
GHA
Lesotho
LSO
2,000
exports
114,717
Ghana
GHA
Liberia
LBR
2,000
exports
6,468,834
Ghana
GHA
Libya
LBY
2,000
exports
42,639
Ghana
GHA
Luxembourg
LUX
2,000
exports
25,686
Ghana
GHA
Madagascar
MDG
2,000
exports
192,197
Ghana
GHA
Malawi
MWI
2,000
exports
5,945
Ghana
GHA
Malaysia
MYS
2,000
exports
3,799,517
Ghana
GHA
Mali
MLI
2,000
exports
713,514
Ghana
GHA
Malta
MLT
2,000
exports
418,361
Ghana
GHA
Mauritania
MRT
2,000
exports
715
Ghana
GHA
Mauritius
MUS
2,000
exports
61,770
Ghana
GHA
Netherlands
NLD
2,000
exports
176,046,868
Ghana
GHA
Other Asia, nes
S19
2,000
exports
1,528,093
Ghana
GHA
Morocco
MAR
2,000
exports
190,366
Ghana
GHA
Mozambique
MOZ
2,000
exports
8,994
Ghana
GHA
Namibia
NAM
2,000
exports
829,628
Ghana
GHA
Nauru
NRU
2,000
exports
795,621
Ghana
GHA
New Zealand
NZL
2,000
exports
29,130
Ghana
GHA
Niger
NER
2,000
exports
10,157,406
Ghana
GHA
Senegal
SEN
2,000
exports
2,357,879
Ghana
GHA
Nigeria
NGA
2,000
exports
25,420,580
Ghana
GHA
Norfolk Isds
NFK
2,000
exports
7,636
Ghana
GHA
Norway
NOR
2,000
exports
1,488,309
Ghana
GHA
Pakistan
PAK
2,000
exports
64,454
Ghana
GHA
Panama
PAN
2,000
exports
9,075,164
Ghana
GHA
Paraguay
PRY
2,000
exports
792
Ghana
GHA
Peru
PER
2,000
exports
84,696
Ghana
GHA
Philippines
PHL
2,000
exports
128
Ghana
GHA
Poland
POL
2,000
exports
794,172
Ghana
GHA
Portugal
PRT
2,000
exports
609,488
Ghana
GHA
Romania
ROU
2,000
exports
814,893
Ghana
GHA
Russian Federation
RUS
2,000
exports
7,340,085
Ghana
GHA
Rwanda
RWA
2,000
exports
331
Ghana
GHA
Saint Vincent and the Grenadines
VCT
2,000
exports
3,900,273
Ghana
GHA
Sao Tome and Principe
STP
2,000
exports
8,349
Ghana
GHA
Sierra Leone
SLE
2,000
exports
2,875,224
Ghana
GHA
India
IND
2,000
exports
14,775,789
Ghana
GHA
Singapore
SGP
2,000
exports
1,094,686
Ghana
GHA
Viet Nam
VNM
2,000
exports
81,522
Ghana
GHA
Saudi Arabia
SAU
2,000
exports
6,681,616
Ghana
GHA
South Africa
ZAF
2,000
exports
28,055,334
Ghana
GHA
Zimbabwe
ZWE
2,000
exports
62,721
End of preview. Expand in Data Studio

Ghana β€” Exports by Trading Partner | Africa (UN Comtrade)

🌍 8,653 observations Β· 1 Africa countries Β· 2000–2023 Β· Repackaged by Electric Sheep Africa

rows countries years indicators license

TL;DR

This dataset contains 8,653 observations of International merchandise trade data across 1 Africa countries, spanning 2000–2023, covering 218 distinct indicators.

About the source

  • Source: UN Comtrade
  • Publisher: United Nations Statistics Division (UN Comtrade)
  • License: other
  • Topic: International merchandise trade

Geographic coverage

1 Africa countries Β· top rows shown below, sorted by row count:

Country Rows First year Last year
Ghana 8,653 2000 2023

Indicators (sample)

  • Afghanistan β€” Afghanistan
  • Albania β€” Albania
  • Algeria β€” Algeria
  • American Samoa β€” American Samoa
  • Andorra β€” Andorra
  • Angola β€” Angola
  • Anguilla β€” Anguilla
  • Antarctica β€” Antarctica
  • Antigua and Barbuda β€” Antigua and Barbuda
  • Areas, nes β€” Areas, nes
  • ... and 208 more indicators

Schema

Column Type Description Example
country_name string β€” Ghana
country_iso3 string β€” GHA
partner_name string β€” Antigua and Barbuda
partner_iso3 string β€” ATG
year int64 β€” 2000
flow string β€” exports
trade_value_usd float64 β€” 151559.0

Usage

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-comtrade-ghana-exports-by-partner")
df = ds["train"].to_pandas()
print(df.head())

Filter to one country

kenya = df[df["country_name"] == "KEN"]

Time-series for a single indicator

sample = (df[df["partner_name"] == "Antigua and Barbuda"]
          .sort_values("year"))
sample.plot(x="year", y="trade_value_usd", title="Antigua and Barbuda")

Pivot to country Γ— year matrix

matrix = (df[df["partner_name"] == "Antigua and Barbuda"]
          .pivot_table(index="year", columns="country_name", values="trade_value_usd"))
print(matrix.tail())

Citation

@misc{africa_comtrade_ghana_exports_by_partner_2023,
  title        = {Ghana β€” Exports by Trading Partner | Africa (UN Comtrade)},
  author       = {United Nations Statistics Division (UN Comtrade)},
  year         = {2023},
  url          = {https://comtradeplus.un.org/},
  publisher    = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-comtrade-ghana-exports-by-partner}}
}

License

Released under other.

Original data Β© United Nations Statistics Division (UN Comtrade). When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.

About Electric Sheep

Electric Sheep Africa is part of the Electric Sheep mission: a unified, ML-ready data layer for Africa on HuggingFace. We pull data from authoritative open sources, normalize the schemas, package as Parquet, and publish with consistent dataset cards so researchers and developers can use load_dataset() to start working in seconds.

Browse the full collection: huggingface.co/electricsheepafrica


Provenance: ingested 2026-06-17 via the Electric Sheep pipeline. Source URL: https://comtradeplus.un.org/

Downloads last month
33