All 16 regions with capital, population (2021), and area in kmΒ².
ghana_regions
for region in ghana_regions:
print(region["name"], "β", region["capital"])Average monthly temperature and rainfall for Accra.
accra_weather
for month in accra_weather:
print(month["month"], "β", month["rainfall_mm"], "mm")Fares between major Ghanaian cities, in cedis.
trotro_fares
for route in trotro_fares:
print(route["from"], "β", route["to"], "GHβ΅" + str(route["fare_ghc"]))Makola market prices
30 items30 common food items, units, and weekly prices.
market_prices
food = [item for item in market_prices if item["category"] == "Food"]
for item in food[:5]:
print(item["item"], "β", "GHβ΅" + str(item["price_ghc"]))Ghana population (2021 census)
16 regions + 7 age groupsNational total, age groups, urban/rural by region.
ghana_population
print("Total population:", ghana_population["national_total"])
for region in ghana_population["by_region"][:3]:
print(region["region"], region["urban"] + region["rural"])Public schools
27 region-level rowsSchools and enrolment by region and level (primary/JHS/SHS).
public_schools
for entry in public_schools["schools"][:5]:
print(entry["region"], entry["level"], "β", entry["count"], "schools")MoMo transactions (synthetic)
15 transactionsAnonymised mobile money records β type, amount, fee, date.
momo_transactions
sends = [t for t in momo_transactions["transactions"] if t["type"] == "send"]
total = sum(t["amount"] for t in sends)
print("Total sent:", total, momo_transactions["currency"])Ghanaian languages
11 languagesMajor Ghanaian languages, speaker counts, regions.
ghana_languages
top = sorted(ghana_languages, key=lambda L: L["speakers"], reverse=True)[:3]
for L in top:
print(L["language"], "β", L["speakers"], "speakers")Crop yields (2022)
24 region-crop rowsCrops by region β yield per hectare and total harvest.
crop_yields
cocoa = [r for r in crop_yields["yields"] if r["crop"] == "Cocoa"]
for r in cocoa:
print(r["region"], "β", r["harvest_tonnes"], "tonnes")Cocoa prices (1990β2023)
34 yearsAnnual cocoa price in USD per tonne, from 1990 to 2023.
cocoa_prices
recent = cocoa_prices["history"][-5:]
for row in recent:
print(row["year"], "β", "$" + str(row["price_usd"]))