country_name stringclasses 15
values | country_m49 int64 12 818 | item stringclasses 2
values | year int64 2k 2.02k | value float64 -234.48 141 | unit stringclasses 1
value | flag stringclasses 2
values |
|---|---|---|---|---|---|---|
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,003 | 1.55156 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,004 | 0.621679 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,005 | 3.794676 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,006 | 8.690142 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,007 | 2.621841 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,008 | 11.242417 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,009 | 1.859368 | % | X |
Algeria | 12 | FDI inflows to Agriculture, Forestry and Fishing | 2,010 | 1.440742 | % | X |
CΓ΄te d'Ivoire | 384 | FDI inflows to Agriculture, Forestry and Fishing | 2,013 | 2.607999 | % | X |
CΓ΄te d'Ivoire | 384 | FDI inflows to Agriculture, Forestry and Fishing | 2,014 | 0.405137 | % | X |
CΓ΄te d'Ivoire | 384 | FDI inflows to Agriculture, Forestry and Fishing | 2,016 | 1.143853 | % | X |
CΓ΄te d'Ivoire | 384 | FDI inflows to Agriculture, Forestry and Fishing | 2,017 | 0.275893 | % | X |
Djibouti | 262 | FDI inflows to Agriculture, Forestry and Fishing | 2,005 | 25.406504 | % | X |
Djibouti | 262 | FDI inflows to Agriculture, Forestry and Fishing | 2,006 | 12.225686 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,001 | 5.185185 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,002 | 9.474824 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,003 | 1.79754 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,004 | 4.566051 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,008 | 0.155153 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,009 | -0.219489 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,010 | 2.681183 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,011 | 2.066045 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,012 | 0.587055 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,013 | 1.422837 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,014 | 0.088669 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,017 | 0.264939 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,018 | 0.357004 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,019 | 0.197046 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,020 | -0.04213 | % | X |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,021 | 0.101515 | % | P |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,022 | 0.42632 | % | P |
Egypt | 818 | FDI inflows to Agriculture, Forestry and Fishing | 2,023 | 0.694063 | % | P |
Egypt | 818 | FDI inflows to Food, Beverages and Tobacco | 2,001 | 11.687243 | % | X |
Egypt | 818 | FDI inflows to Food, Beverages and Tobacco | 2,002 | 8.012994 | % | X |
Egypt | 818 | FDI inflows to Food, Beverages and Tobacco | 2,003 | 7.94702 | % | X |
Egypt | 818 | FDI inflows to Food, Beverages and Tobacco | 2,004 | 18.612757 | % | X |
Ethiopia | 231 | FDI inflows to Agriculture, Forestry and Fishing | 2,000 | 10.799168 | % | X |
Ethiopia | 231 | FDI inflows to Food, Beverages and Tobacco | 2,000 | 27.993167 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,009 | 3.287771 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,010 | 11.780672 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,011 | 19.36004 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,012 | 0.396547 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,013 | 4.74409 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,014 | 0.722371 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,015 | 0.07894 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,016 | 0.185637 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,017 | 0.205837 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,018 | 0.287048 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,019 | 0.033764 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,020 | 0.053311 | % | X |
Ghana | 288 | FDI inflows to Agriculture, Forestry and Fishing | 2,021 | 0.66672 | % | P |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,007 | 1.261562 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,008 | 2.928626 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,009 | 27.980695 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,010 | 5.667528 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,011 | 0.568383 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,012 | 2.674497 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,013 | 0.976858 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,014 | -0.022515 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,015 | -6.260189 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,016 | -5.258053 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,017 | 0.681894 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,018 | 2.892172 | % | X |
Kenya | 404 | FDI inflows to Agriculture, Forestry and Fishing | 2,019 | 18.35316 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,005 | 14.392451 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,006 | 1.253371 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,007 | -2.120942 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,008 | 0.417798 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,009 | 1.301476 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,010 | 2.004665 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,011 | 0.243917 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,012 | 2.904564 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,013 | 1.911306 | % | X |
Madagascar | 450 | FDI inflows to Agriculture, Forestry and Fishing | 2,014 | 1.577369 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,002 | 5.808458 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,003 | 17.821391 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,004 | 1.510254 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,008 | -234.482759 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,010 | -119.175258 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,020 | 33.904483 | % | X |
Malawi | 454 | FDI inflows to Agriculture, Forestry and Fishing | 2,021 | 140.698153 | % | P |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,001 | 1.495726 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,004 | 26.933779 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,005 | 0.676879 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,006 | 0.353107 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,007 | 0.15981 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,008 | 3.918013 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,011 | 1.667442 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,012 | 0.623374 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,013 | 5.25207 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,014 | 0.616316 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,015 | 0.031001 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,016 | 0.203733 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,017 | 0.084738 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,018 | 0.092113 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,019 | 0.044865 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,020 | 1.174457 | % | X |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,021 | 0.102875 | % | P |
Mauritius | 480 | FDI inflows to Agriculture, Forestry and Fishing | 2,022 | 0.498951 | % | P |
Morocco | 504 | FDI inflows to Agriculture, Forestry and Fishing | 2,000 | 0.512235 | % | X |
Foreign Direct Investment (FDI) β Share of Total FDI inflows US$, 2015 prices | Africa (FAOSTAT)
π 287 observations Β· 18 Africa countries Β· 2000β2023 Β· Repackaged by Electric Sheep Africa
TL;DR
This dataset contains 287 observations of Investment data across 18 Africa countries, spanning 2000β2023, covering 2 distinct indicators.
About the source
- Source: FAOSTAT (FAO)
- Publisher: Food and Agriculture Organization of the United Nations (FAO)
- License: cc-by-4.0
- Topic: Investment
Geographic coverage
18 Africa countries Β· top rows shown below, sorted by row count:
| Country | Rows | First year | Last year |
|---|---|---|---|
Tunisia |
44 | 2000 | 2021 |
Morocco |
38 | 2000 | 2023 |
Mozambique |
23 | 2001 | 2023 |
Egypt |
22 | 2001 | 2023 |
United Republic of Tanzania |
22 | 2000 | 2021 |
Uganda |
19 | 2000 | 2021 |
Mauritius |
18 | 2001 | 2022 |
Zambia |
14 | 2007 | 2021 |
Rwanda |
14 | 2008 | 2021 |
Nigeria |
14 | 2002 | 2015 |
Ghana |
13 | 2009 | 2021 |
Kenya |
13 | 2007 | 2019 |
Madagascar |
10 | 2005 | 2014 |
Algeria |
8 | 2003 | 2010 |
Malawi |
7 | 2002 | 2021 |
| ... | 3 more countries |
Indicators (sample)
FDI inflows to Agriculture, Forestry and FishingFDI inflows to Food, Beverages and Tobacco
Schema
| Column | Type | Description | Example |
|---|---|---|---|
country_name |
string |
β | Algeria |
country_m49 |
int64 |
β | 12 |
item |
string |
β | FDI inflows to Agriculture, Forestry β¦ |
year |
int64 |
β | 2003 |
value |
float64 |
β | 1.55156 |
unit |
string |
β | % |
flag |
string |
β | X |
Usage
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-foreign-direct-investment-fdi-share-of-total-fdi-inflows-us-2015-prices")
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["item"] == "FDI inflows to Agriculture, Forestry and Fishing"]
.sort_values("year"))
sample.plot(x="year", y="value", title="FDI inflows to Agriculture, Forestry and Fishing")
Pivot to country Γ year matrix
matrix = (df[df["item"] == "FDI inflows to Agriculture, Forestry and Fishing"]
.pivot_table(index="year", columns="country_name", values="value"))
print(matrix.tail())
Citation
@misc{africa_foreign_direct_investment_fdi_share_of_total_fdi_inflows_us_2015_prices_2023,
title = {Foreign Direct Investment (FDI) β Share of Total FDI inflows US$, 2015 prices | Africa (FAOSTAT)},
author = {Food and Agriculture Organization of the United Nations (FAO)},
year = {2023},
url = {https://www.fao.org/faostat/en/#data/FDI},
publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-foreign-direct-investment-fdi-share-of-total-fdi-inflows-us-2015-prices}}
}
License
Released under cc-by-4.0.
Original data Β© Food and Agriculture Organization of the United Nations (FAO). 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://www.fao.org/faostat/en/#data/FDI
- Downloads last month
- 12