This project analyzes international debt statistics across countries using SQL and Python to extract insights into global borrowing patterns. The analysis focuses on identifying high-debt countries, debt distribution trends, and key financial indicators using structured queries and data analytics techniques.
- Source: International Debt Statistics (CSV format)
- Data Stored In: PostgreSQL
- Table Name:
international_debt
CREATE TABLE international_debt
(
country_name VARCHAR(50),
country_code VARCHAR(50),
indicator_name TEXT,
indicator_code TEXT,
debt NUMERIC
);\copy international_debt
FROM 'international_debt.csv'
DELIMITER ','
CSV HEADER;- Python
- PostgreSQL
- SQL
- Pandas
- Jupyter Notebook
- Store structured financial data using SQL
- Analyze international debt across countries and indicators
- Identify countries with the highest total debt
- Understand debt distribution across economic indicators
- Perform aggregation and ranking using SQL queries
- Combine SQL with Python for analysis and reporting
-
Created relational table schema for international debt data
-
Imported large CSV data into PostgreSQL
-
Used SQL queries with:
SUM,AVG,MAXGROUP BY,ORDER BY- Filtering by country and indicators
-
Ranked countries based on total debt
-
Analyzed debt contribution by indicator type
- Identified countries with the highest accumulated debt
- Highlighted indicators contributing most to global debt
- Observed significant variation in debt distribution across regions
- Demonstrated how SQL can be effectively used for financial analysis at scale
- Create the PostgreSQL table using the provided SQL script
- Import the CSV file into the database
- Open the Jupyter Notebook
- Run SQL queries and analysis cells
This project showcases the practical application of SQL and Python for analyzing global financial datasets. The insights derived can help understand international borrowing patterns and demonstrate how structured data analytics supports informed financial decision-making.