This project analyzes international debt data collected by The World Bank, focusing on the debt owed by developing countries across various categories. The objective of this project is to uncover key insights about the debt situation among these nations, including identifying the largest debtors, understanding debt distribution by category, and recognizing overall debt trends. Through this analysis, we aim to provide a clearer understanding of how debt supports economic development in developing countries and offer valuable insights for stakeholders and policymakers.
Below is a description of the table worked with:
international_debt
tableColumn | Definition | Data Type |
---|---|---|
country_name |
Name of the country | varchar |
country_code |
Code representing the country | varchar |
indicator_name |
Description of the debt indicator | varchar |
indicator_code |
Code representing the debt indicator | varchar |
debt |
Value of the debt indicator for the given country (in current US dollars) | float |
EDA involved exploring the international debt table to answer key questions, such as:
Including some interesting code/features worked with
-- num_distinct_countries
SELECT COUNT(DISTINCT country_name) as total_distinct_countries
FROM international_debt;
-- highest_debt_country
SELECT country_name,
SUM(debt) as total_debt
FROM international_debt
GROUP BY country_name
ORDER BY total_debt DESC
LIMIT 1;
-- lowest_principal_repayment
SELECT country_name,
indicator_name,
MIN(debt) as lowest_repayment
FROM international_debt
WHERE indicator_code = 'DT.AMT.DLXF.CD'
GROUP BY country_name, indicator_name
ORDER BY lowest_repayment ASC
LIMIT 1;
The analysis results are summarized as follows:
Based on the analysis, we recommend the following actions: