country_name stringclasses 1
value | country_iso3 stringclasses 1
value | partner_name stringclasses 228
values | partner_iso3 stringclasses 227
values | year int64 2k 2.02k | flow stringclasses 1
value | trade_value_usd float64 0 6.87B |
|---|---|---|---|---|---|---|
Botswana | BWA | Angola | AGO | 2,000 | imports | 602 |
Botswana | BWA | Australia | AUS | 2,000 | imports | 4,030,775 |
Botswana | BWA | Austria | AUT | 2,000 | imports | 8,865,491 |
Botswana | BWA | Bangladesh | BGD | 2,000 | imports | 180,849 |
Botswana | BWA | Belgium | BEL | 2,000 | imports | 3,289,751 |
Botswana | BWA | Canada | CAN | 2,000 | imports | 4,939,887 |
Botswana | BWA | China | CHN | 2,000 | imports | 8,973,474 |
Botswana | BWA | Comoros | COM | 2,000 | imports | 2,282 |
Botswana | BWA | Dem. Rep. of the Congo | COD | 2,000 | imports | 971 |
Botswana | BWA | Czechia | CZE | 2,000 | imports | 351,020 |
Botswana | BWA | Denmark | DNK | 2,000 | imports | 2,166,153 |
Botswana | BWA | Ethiopia | ETH | 2,000 | imports | 77,685 |
Botswana | BWA | Finland | FIN | 2,000 | imports | 124,738 |
Botswana | BWA | France | FRA | 2,000 | imports | 37,442,344 |
Botswana | BWA | Germany | DEU | 2,000 | imports | 11,412,127 |
Botswana | BWA | Ghana | GHA | 2,000 | imports | 819,474 |
Botswana | BWA | Greece | GRC | 2,000 | imports | 172,201 |
Botswana | BWA | China, Hong Kong SAR | HKG | 2,000 | imports | 7,960,914 |
Botswana | BWA | Iran | IRN | 2,000 | imports | 438,325 |
Botswana | BWA | Iraq | IRQ | 2,000 | imports | 31,920 |
Botswana | BWA | Ireland | IRL | 2,000 | imports | 2,591,788 |
Botswana | BWA | Israel | ISR | 2,000 | imports | 18,393,386 |
Botswana | BWA | Italy | ITA | 2,000 | imports | 119,753,113 |
Botswana | BWA | Japan | JPN | 2,000 | imports | 7,567,947 |
Botswana | BWA | Kenya | KEN | 2,000 | imports | 261,704 |
Botswana | BWA | Rep. of Korea | KOR | 2,000 | imports | 4,253,015 |
Botswana | BWA | Lesotho | LSO | 2,000 | imports | 1,281,515 |
Botswana | BWA | Madagascar | MDG | 2,000 | imports | 21,478 |
Botswana | BWA | Malawi | MWI | 2,000 | imports | 1,151,122 |
Botswana | BWA | Malaysia | MYS | 2,000 | imports | 660,709 |
Botswana | BWA | Mauritius | MUS | 2,000 | imports | 1,035,685 |
Botswana | BWA | Other Asia, nes | S19 | 2,000 | imports | 11,094,065 |
Botswana | BWA | Mozambique | MOZ | 2,000 | imports | 50,928 |
Botswana | BWA | Namibia | NAM | 2,000 | imports | 6,164,419 |
Botswana | BWA | Oceania, nes | O19 | 2,000 | imports | 3,695 |
Botswana | BWA | Netherlands | NLD | 2,000 | imports | 4,313,953 |
Botswana | BWA | Nigeria | NGA | 2,000 | imports | 510,724 |
Botswana | BWA | Other Europe, nes | E19 | 2,000 | imports | 211,038 |
Botswana | BWA | New Zealand | NZL | 2,000 | imports | 310,515 |
Botswana | BWA | Other Africa, nes | F19 | 2,000 | imports | 775,756 |
Botswana | BWA | Norway | NOR | 2,000 | imports | 639,199 |
Botswana | BWA | Pakistan | PAK | 2,000 | imports | 643,256 |
Botswana | BWA | Poland | POL | 2,000 | imports | 20,665 |
Botswana | BWA | Portugal | PRT | 2,000 | imports | 17,139,273 |
Botswana | BWA | North America and Central America, nes | A59 | 2,000 | imports | 4,366,974 |
Botswana | BWA | Russian Federation | RUS | 2,000 | imports | 10,586 |
Botswana | BWA | Seychelles | SYC | 2,000 | imports | 4,369 |
Botswana | BWA | India | IND | 2,000 | imports | 6,717,346 |
Botswana | BWA | Singapore | SGP | 2,000 | imports | 6,371,217 |
Botswana | BWA | South Africa | ZAF | 2,000 | imports | 1,529,732,475 |
Botswana | BWA | Zimbabwe | ZWE | 2,000 | imports | 71,804,129 |
Botswana | BWA | Spain | ESP | 2,000 | imports | 3,075,031 |
Botswana | BWA | Sudan (...2011) | SDN | 2,000 | imports | 1,528 |
Botswana | BWA | Eswatini | SWZ | 2,000 | imports | 14,907 |
Botswana | BWA | Sweden | SWE | 2,000 | imports | 41,078,005 |
Botswana | BWA | Switzerland | CHE | 2,000 | imports | 2,654,682 |
Botswana | BWA | Uganda | UGA | 2,000 | imports | 265,311 |
Botswana | BWA | United Kingdom | GBR | 2,000 | imports | 86,360,909 |
Botswana | BWA | United Rep. of Tanzania | TZA | 2,000 | imports | 296,645 |
Botswana | BWA | USA | USA | 2,000 | imports | 34,460,172 |
Botswana | BWA | Serbia and Montenegro (...2005) | SCG | 2,000 | imports | 16,044 |
Botswana | BWA | Areas, nes | _X | 2,000 | imports | 42,925 |
Botswana | BWA | Zambia | ZMB | 2,000 | imports | 1,532,605 |
Botswana | BWA | Angola | AGO | 2,001 | imports | 97,372 |
Botswana | BWA | Austria | AUT | 2,001 | imports | 3,261,079 |
Botswana | BWA | Bangladesh | BGD | 2,001 | imports | 55,286 |
Botswana | BWA | Australia | AUS | 2,001 | imports | 2,733,033 |
Botswana | BWA | Canada | CAN | 2,001 | imports | 3,369,674 |
Botswana | BWA | Belgium | BEL | 2,001 | imports | 4,104,921 |
Botswana | BWA | China | CHN | 2,001 | imports | 7,000,222 |
Botswana | BWA | Comoros | COM | 2,001 | imports | 112 |
Botswana | BWA | Dem. Rep. of the Congo | COD | 2,001 | imports | 3,521 |
Botswana | BWA | Czechia | CZE | 2,001 | imports | 157 |
Botswana | BWA | Denmark | DNK | 2,001 | imports | 1,051,644 |
Botswana | BWA | Ethiopia | ETH | 2,001 | imports | 10,309 |
Botswana | BWA | Finland | FIN | 2,001 | imports | 1,262,490 |
Botswana | BWA | France | FRA | 2,001 | imports | 19,811,582 |
Botswana | BWA | Djibouti | DJI | 2,001 | imports | 146 |
Botswana | BWA | Germany | DEU | 2,001 | imports | 8,975,345 |
Botswana | BWA | Ghana | GHA | 2,001 | imports | 852,886 |
Botswana | BWA | Greece | GRC | 2,001 | imports | 292,964 |
Botswana | BWA | China, Hong Kong SAR | HKG | 2,001 | imports | 2,186,134 |
Botswana | BWA | Iran | IRN | 2,001 | imports | 568,324 |
Botswana | BWA | Iraq | IRQ | 2,001 | imports | 521 |
Botswana | BWA | Israel | ISR | 2,001 | imports | 35,528,022 |
Botswana | BWA | Ireland | IRL | 2,001 | imports | 3,690,440 |
Botswana | BWA | Italy | ITA | 2,001 | imports | 16,017,130 |
Botswana | BWA | Japan | JPN | 2,001 | imports | 5,351,994 |
Botswana | BWA | Rep. of Korea | KOR | 2,001 | imports | 3,861,055 |
Botswana | BWA | Kenya | KEN | 2,001 | imports | 343,737 |
Botswana | BWA | Lesotho | LSO | 2,001 | imports | 337,451 |
Botswana | BWA | Madagascar | MDG | 2,001 | imports | 182 |
Botswana | BWA | Malawi | MWI | 2,001 | imports | 705,962 |
Botswana | BWA | Mauritius | MUS | 2,001 | imports | 630,755 |
Botswana | BWA | Malaysia | MYS | 2,001 | imports | 1,595,110 |
Botswana | BWA | Mozambique | MOZ | 2,001 | imports | 16,747 |
Botswana | BWA | Other Asia, nes | S19 | 2,001 | imports | 8,841,276 |
Botswana | BWA | Namibia | NAM | 2,001 | imports | 6,078,977 |
Botswana | BWA | Oceania, nes | O19 | 2,001 | imports | 6,638 |
Botswana | BWA | New Zealand | NZL | 2,001 | imports | 131,385 |
Botswana β Imports by Trading Partner | Africa (UN Comtrade)
π 7,024 observations Β· 1 Africa countries Β· 2000β2023 Β· Repackaged by Electric Sheep Africa
TL;DR
This dataset contains 7,024 observations of International merchandise trade data across 1 Africa countries, spanning 2000β2023, covering 230 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 |
|---|---|---|---|
Botswana |
7,024 | 2000 | 2023 |
Indicators (sample)
Afghanistanβ AfghanistanAlbaniaβ AlbaniaAlgeriaβ AlgeriaAmerican Samoaβ American SamoaAndorraβ AndorraAngolaβ AngolaAntarcticaβ AntarcticaAntigua and Barbudaβ Antigua and BarbudaAreas, nesβ Areas, nesArgentinaβ Argentina- ... and 220 more indicators
Schema
| Column | Type | Description | Example |
|---|---|---|---|
country_name |
string |
β | Botswana |
country_iso3 |
string |
β | BWA |
partner_name |
string |
β | Angola |
partner_iso3 |
string |
β | AGO |
year |
int64 |
β | 2000 |
flow |
string |
β | imports |
trade_value_usd |
float64 |
β | 602.0 |
Usage
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-comtrade-botswana-imports-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"] == "Angola"]
.sort_values("year"))
sample.plot(x="year", y="trade_value_usd", title="Angola")
Pivot to country Γ year matrix
matrix = (df[df["partner_name"] == "Angola"]
.pivot_table(index="year", columns="country_name", values="trade_value_usd"))
print(matrix.tail())
Citation
@misc{africa_comtrade_botswana_imports_by_partner_2023,
title = {Botswana β Imports 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-botswana-imports-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
- 32