Dataset Viewer
Auto-converted to Parquet Duplicate
country_name
stringclasses
1 value
country_iso3
stringclasses
1 value
commodity_code
stringlengths
6
6
commodity
stringlengths
13
264
year
int64
2k
2.02k
flow
stringclasses
1 value
trade_value_usd
float64
0
2.81B
Botswana
BWA
090122
090122 - Coffee; roasted, decaffeinated
2,000
imports
200,305
Botswana
BWA
090610
090610 - - Neither crushed nor ground
2,000
imports
15,410
Botswana
BWA
090620
090620 - Spices; cinnamon and cinnamon-tree flowers, crushed or ground
2,000
imports
2,741
Botswana
BWA
090700
090700 - Cloves (whole fruit, cloves and stems).
2,000
imports
2,169
Botswana
BWA
090810
090810 - - Nutmeg
2,000
imports
15,957
Botswana
BWA
090820
090820 - - Mace
2,000
imports
645
Botswana
BWA
090830
090830 - - Cardamoms
2,000
imports
3,416
Botswana
BWA
090910
090910 - - Seeds of anise or badian
2,000
imports
23,567
Botswana
BWA
090121
090121 - Coffee; roasted, not decaffeinated
2,000
imports
443,763
Botswana
BWA
090112
090112 - Coffee; decaffeinated, not roasted
2,000
imports
11,646
Botswana
BWA
090111
090111 - Coffee; not roasted or decaffeinated
2,000
imports
1,099,010
Botswana
BWA
081400
081400 - Peel; of citrus fruit or melons (including watermelons), fresh, frozen, dried or provisionally preserved in brine, in sulphur water and other preservative solutions
2,000
imports
28,656
Botswana
BWA
081350
081350 - Nuts, edible; mixtures of nuts or dried fruits of chapter 08
2,000
imports
80,166
Botswana
BWA
081340
081340 - Fruit, edible; fruit n.e.c. in heading no. 0812, dried
2,000
imports
154,349
Botswana
BWA
081330
081330 - Fruit, edible; apples, dried
2,000
imports
115,201
Botswana
BWA
080720
080720 - Fruit, edible; papaws (papayas), fresh
2,000
imports
73,871
Botswana
BWA
080719
080719 - Fruit, edible; melons, other than watermelons, fresh
2,000
imports
20,551
Botswana
BWA
080711
080711 - Fruit, edible; watermelons, fresh
2,000
imports
135,723
Botswana
BWA
080620
080620 - Fruit, edible; grapes, dried
2,000
imports
14,015
Botswana
BWA
080610
080610 - Fruit, edible; grapes, fresh
2,000
imports
381,548
Botswana
BWA
080590
080590 - Fruit, edible; citrus fruit n.e.c. in heading no. 0805, fresh or dried
2,000
imports
210,995
Botswana
BWA
080540
080540 - Fruit, edible; grapefruit and pomelos, fresh or dried
2,000
imports
28,355
Botswana
BWA
080530
080530 - Lemons (Citrus limon, Citrus limonum) and limes (Citrus aurantifolia)
2,000
imports
43,157
Botswana
BWA
080520
080520 - -Mandarins (including tangerines and satsumas); clementines, wilkings and similar citrus hybrids
2,000
imports
166,855
Botswana
BWA
080510
080510 - Fruit, edible; oranges, fresh or dried
2,000
imports
852,450
Botswana
BWA
080450
080450 - Fruit, edible; guavas, mangoes and mangosteens, fresh or dried
2,000
imports
295,533
Botswana
BWA
080440
080440 - Fruit, edible; avocados, fresh or dried
2,000
imports
79,130
Botswana
BWA
080430
080430 - Fruit, edible; pineapples, fresh or dried
2,000
imports
141,772
Botswana
BWA
080420
080420 - Fruit, edible; figs, fresh or dried
2,000
imports
16,146
Botswana
BWA
080410
080410 - Fruit, edible; dates, fresh or dried
2,000
imports
61,671
Botswana
BWA
080300
080300 - Bananas, including plantains, fresh or dried.
2,000
imports
2,258,507
Botswana
BWA
080290
080290 - Nuts, edible; n.e.c. in heading no. 0801 and 0802, fresh or dried, whether or not shelled or peeled
2,000
imports
75,619
Botswana
BWA
080250
080250 - - Pistachios
2,000
imports
4,924
Botswana
BWA
080240
080240 - - Chestnuts (Castanea spp.)
2,000
imports
39,393
Botswana
BWA
080232
080232 - Nuts, edible; walnuts, fresh or dried, shelled
2,000
imports
1,813
Botswana
BWA
080231
080231 - Nuts, edible; walnuts, fresh or dried, in shell
2,000
imports
1,182
Botswana
BWA
080222
080222 - Nuts, edible; hazelnuts or filberts (corylus spp.), fresh or dried, shelled
2,000
imports
1,302
Botswana
BWA
080221
080221 - Nuts, edible; hazelnuts or filberts (corylus spp.), fresh or dried, in shell
2,000
imports
2,897
Botswana
BWA
080212
080212 - Nuts, edible; almonds, fresh or dried, shelled
2,000
imports
9,999
Botswana
BWA
080211
080211 - Nuts, edible; almonds, fresh or dried, in shell
2,000
imports
36,664
Botswana
BWA
080132
080132 - Nuts, edible; cashew nuts, fresh or dried, shelled
2,000
imports
3,436
Botswana
BWA
080131
080131 - Nuts, edible; cashew nuts, fresh or dried, in shell
2,000
imports
13,953
Botswana
BWA
080122
080122 - Nuts, edible; brazil nuts, fresh or dried, shelled
2,000
imports
7,033
Botswana
BWA
080121
080121 - Nuts, edible; brazil nuts, fresh or dried, in shell
2,000
imports
13,126
Botswana
BWA
080119
080119 - Nuts, edible; coconuts, fresh or dried, other than desiccated or in the inner shell (endocarp)
2,000
imports
9,713
Botswana
BWA
080111
080111 - Nuts, edible; coconuts, desiccated
2,000
imports
46,839
Botswana
BWA
071490
071490 - Vegetable roots and tubers; arrowroot, salep, Jerusalem artichokes and similar roots and tubers (not manioc, sweet potatoes, yams, taro or yautia), high starch or inulin content, fresh, chilled, frozen, dried, sliced or not, or in pellet form; sago pith
2,000
imports
6,336
Botswana
BWA
071420
071420 - Vegetable roots and tubers; sweet potatoes, with high starch or inulin content, fresh, chilled, frozen or dried, whether or not sliced or in the form of pellets
2,000
imports
68,066
Botswana
BWA
071410
071410 - Vegetable roots and tubers; manioc (cassava), with high starch or inulin content, fresh, chilled, frozen or dried, whether or not sliced or in the form of pellets
2,000
imports
7,430
Botswana
BWA
071390
071390 - Vegetables, leguminous; n.e.c. in heading no. 0713, shelled, whether or not skinned or split, dried
2,000
imports
925,744
Botswana
BWA
071350
071350 - Vegetables, leguminous; broad beans (vicia faba var. major) and horse beans (vicia faba var. equina, vicia faba var. minor), shelled, whether or not skinned or split, dried
2,000
imports
20,005
Botswana
BWA
071340
071340 - Vegetables, leguminous; lentils, shelled, whether or not skinned or split, dried
2,000
imports
13,882
Botswana
BWA
071339
071339 - Vegetables, leguminous; n.e.c. in item no. 0713.3, shelled, whether or not skinned or split, dried
2,000
imports
1,393,849
Botswana
BWA
071333
071333 - Vegetables, leguminous; kidney beans, including white pea beans (phaseolus vulgaris), shelled, whether or not skinned or split, dried
2,000
imports
770,023
Botswana
BWA
071332
071332 - Vegetables, leguminous; small red (adzuki) beans (phaseolus or vigna angularis), shelled, whether or not skinned or split, dried
2,000
imports
42,353
Botswana
BWA
071331
071331 - Vegetables, leguminous; beans of the species vigna mungo (l.) hepper or vigna radiata (l.) wilczek, shelled, whether or not skinned or split, dried
2,000
imports
61,596
Botswana
BWA
071320
071320 - Vegetables, leguminous; chickpeas (garbanzos), shelled, whether or not skinned or split, dried
2,000
imports
2,861
Botswana
BWA
071310
071310 - Vegetables, leguminous; peas (pisum sativum), shelled, whether or not skinned or split, dried
2,000
imports
514,549
Botswana
BWA
071290
071290 - Vegetables; mixtures of vegetables n.e.c. in heading no. 0712, whole, cut, sliced, broken or in powder but not further prepared, dried
2,000
imports
248,097
Botswana
BWA
071230
071230 - Mushrooms and truffles
2,000
imports
70,615
Botswana
BWA
071220
071220 - Vegetables; onions, whole, cut, sliced, broken or in powder but not further prepared, dried
2,000
imports
60,926
Botswana
BWA
071190
071190 - Vegetables and mixed vegetables; n.e.c. in heading no. 0711, provisionally preserved but unsuitable in that state for immediate consumption
2,000
imports
175,358
Botswana
BWA
071140
071140 - Vegetables; cucumbers and gherkins, provisionally preserved but unsuitable in that state for immediate consumption
2,000
imports
7,834
Botswana
BWA
071130
071130 - - Capers
2,000
imports
5,944
Botswana
BWA
071120
071120 - Vegetables; olives, provisionally preserved but unsuitable in that state for immediate consumption
2,000
imports
27,632
Botswana
BWA
071110
071110 - Onions
2,000
imports
42,043
Botswana
BWA
071090
071090 - Vegetable mixtures; uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
255,305
Botswana
BWA
071080
071080 - Vegetables; uncooked or cooked by steaming or boiling in water, n.e.c. in heading no. 0710, frozen
2,000
imports
107,189
Botswana
BWA
071040
071040 - Vegetables; sweetcorn, uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
78,705
Botswana
BWA
071030
071030 - Vegetables; spinach, New Zealand spinach and orache spinach (garden spinach), uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
3,522
Botswana
BWA
071029
071029 - Vegetables, leguminous; (other than peas or beans), shelled or unshelled, uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
119,179
Botswana
BWA
071022
071022 - Vegetables, leguminous; beans (vigna spp., phaseolus spp.), shelled or unshelled, uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
12,186
Botswana
BWA
071021
071021 - Vegetables, leguminous; peas (pisum sativum), shelled or unshelled, uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
17,326
Botswana
BWA
071010
071010 - Vegetables; potatoes, uncooked or cooked by steaming or boiling in water, frozen
2,000
imports
1,309,557
Botswana
BWA
070990
070990 - - Other
2,000
imports
918,884
Botswana
BWA
070970
070970 - Vegetables; spinach, New Zealand spinach and orache spinach (garden spinach), fresh or chilled
2,000
imports
40,901
Botswana
BWA
070960
070960 - Vegetables; fruits of the genus capsicum or of the genus pimenta, fresh or chilled
2,000
imports
221,946
Botswana
BWA
070952
070952 - Vegetables; mushrooms of the genus Boletus, fresh or chilled
2,000
imports
930
Botswana
BWA
070951
070951 - Vegetables; mushrooms of the genus Agaricus, fresh or chilled
2,000
imports
243,946
Botswana
BWA
070940
070940 - Vegetables; celery (other than celeriac), fresh or chilled
2,000
imports
35,319
Botswana
BWA
070930
070930 - Vegetables; aubergines, (e.g. plants), fresh or chilled
2,000
imports
17,947
Botswana
BWA
070920
070920 - Vegetables; asparagus, fresh or chilled
2,000
imports
14,624
Botswana
BWA
070910
070910 - - Globe artichokes
2,000
imports
45,933
Botswana
BWA
070890
070890 - Vegetables, leguminous; (other than peas and beans), shelled or unshelled, fresh or chilled
2,000
imports
39,678
Botswana
BWA
070820
070820 - Vegetables, leguminous; beans (vigna spp., phaseolus spp.), shelled or unshelled, fresh or chilled
2,000
imports
120,125
Botswana
BWA
070810
070810 - Vegetables, leguminous; peas (pisum sativum), shelled or unshelled, fresh or chilled
2,000
imports
122,063
Botswana
BWA
070700
070700 - Vegetables; cucumbers and gherkins, fresh or chilled
2,000
imports
289,639
Botswana
BWA
070690
070690 - Vegetables, root; salad beetroot, salsify, celeric, radishes and similar edible roots, fresh or chilled
2,000
imports
548,922
Botswana
BWA
070610
070610 - Vegetables, root; carrots and turnips, fresh or chilled
2,000
imports
576,244
Botswana
BWA
070529
070529 - Vegetables; chicory (cichorium spp.), (other than witloof chicory), fresh or chilled
2,000
imports
10,516
Botswana
BWA
070521
070521 - Vegetables; witloff chicory (cichorium intybus var. foliosum), fresh or chilled
2,000
imports
5,120
Botswana
BWA
070519
070519 - Vegetables; lettuce (lactuca sativa), (other than cabbage lettuce), fresh or chilled
2,000
imports
76,101
Botswana
BWA
070511
070511 - Vegetables; cabbage (head) lettuce (lactuca sativa), fresh or chilled
2,000
imports
320,640
Botswana
BWA
070490
070490 - Vegetables, brassica; edible, n.e.c. in heading no. 0704, fresh or chilled
2,000
imports
545,362
Botswana
BWA
070420
070420 - Vegetables, brassica; brussel sprouts, fresh or chilled
2,000
imports
32,158
Botswana
BWA
070410
070410 - Vegetables, brassica; cauliflowers and broccoli, fresh or chilled
2,000
imports
229,053
Botswana
BWA
070390
070390 - Vegetables, alliaceous; leeks and other kinds n.e.c. in heading no. 0703, fresh or chilled
2,000
imports
48,109
Botswana
BWA
070320
070320 - Vegetables, alliaceous; garlic, fresh or chilled
2,000
imports
175,205
Botswana
BWA
070310
070310 - Vegetables, alliaceous; onions and shallots, fresh or chilled
2,000
imports
1,499,415
Botswana
BWA
070200
070200 - Vegetables; tomatoes, fresh or chilled
2,000
imports
2,359,097
End of preview. Expand in Data Studio

Botswana β€” Imports by Commodity (HS6) | Africa (UN Comtrade)

🌍 213,005 observations Β· 1 Africa countries Β· 2000–2023 Β· Repackaged by Electric Sheep Africa

rows countries years indicators license

TL;DR

This dataset contains 213,005 observations of International merchandise trade data across 1 Africa countries, spanning 2000–2023, covering 6364 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 213,005 2000 2023

Indicators (sample)

  • 010110 β€” 010110 - - Pure-bred breeding animals
  • 010111 β€” 010111 - Horses :-- Pure-bred breeding animals
  • 010119 β€” 010119 - Horses :-- Other
  • 010120 β€” 010120 - Asses, mules and hinnies
  • 010121 β€” 010121 - Horses; live, pure-bred breeding animals
  • 010129 β€” 010129 - Horses; live, other than pure-bred breeding animals
  • 010130 β€” 010130 - Asses; live
  • 010190 β€” 010190 - Mules and hinnies; live
  • 010210 β€” 010210 - - Pure-bred breeding animals
  • 010221 β€” 010221 - Cattle; live, pure-bred breeding animals
  • ... and 6354 more indicators

Schema

Column Type Description Example
country_name string β€” Botswana
country_iso3 string β€” BWA
commodity_code string β€” 090122
commodity string β€” 090122 - Coffee; roasted, decaffeinated
year int64 β€” 2000
flow string β€” imports
trade_value_usd float64 β€” 200305.0

Usage

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-comtrade-botswana-imports-by-commodity")
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["commodity_code"] == "090122"]
          .sort_values("year"))
sample.plot(x="year", y="trade_value_usd", title="090122")

Pivot to country Γ— year matrix

matrix = (df[df["commodity_code"] == "090122"]
          .pivot_table(index="year", columns="country_name", values="trade_value_usd"))
print(matrix.tail())

Citation

@misc{africa_comtrade_botswana_imports_by_commodity_2023,
  title        = {Botswana β€” Imports by Commodity (HS6) | 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-commodity}}
}

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
36