GDP per Capita: Bangladesh, India & Pakistan

A Comparative Analysis (2005–2025)

Author

Abir Hossain

Published

March 12, 2026

Executive Summary

This report presents a comparative analysis of GDP per capita (US $) trends across Bangladesh, India, and Pakistan from 2005 to 2025. The data was sourced from World Bank. The analysis tracks economic growth trajectories of three major South Asian economies over two decades. The findings reveal diverging growth patterns, with India maintaining the highest GDP per capita throughout the period, while Bangladesh demonstrates a notable acceleration in recent years, even overtaking India and maintaining lead for a window of 5 years.

Why This Project

This is the first project that I did, intended as a practice exercise towards computational science and data engineering workflows.

The scope of practice was:

  • Python Scripting: – using Python scripts for:

    • Extracting data
    • Cleaning data and saving it in a usable format
    • Performing analytics
    • Creating visualizations of the results
  • Documentation: – using documentation tools for academic or enterprise style documentation and presentations:

    • Quarto
    • Typst

Methodology

The project followed a simple workflow, each handled by a dedicated Python script.

1. Data Acquisition (download_data.py)

Data was downloaded programmatically from the World Bank API using the requests library, covering GDP per capita (current US$) for Bangladesh, India, and Pakistan from 2005 to 2025.

2. Data Cleaning (clean.py)

The raw data was cleaned and restructured into a tidy usable format - handling missing values, renaming columns, dropping whitespaces and other anomalous signs and formats, then saving the output as a CSV file ready for analysis.

3. Visualization (plot.py)

The cleaned data was plotted using matplotlib and seaborn, producing a multi-line chart comparing GDP per capita(US $) trends across the three countries, with countries represented by separate colored line over the full time period.

Project Structure

GDP_perCapita_BD-IND-PAK/
├── download_data.py
├── clean.py
├── plot.py
├── GDP_per_capita_BD_IND_PAK_2005_2025.csv
├── GDP_per_capita_BD_IND_PAK_2005_2025_clean.csv

All the scripts and the data files can be found here.

Results

Insights

As can be seen from the plot

  • India consistently maintained the highest GDP per capita among the three nations overall.

  • Bangladesh showed a remarkable acceleration in growth since 2015, briefly overtaking India from roughly 2018 to 2023, maintaining a lead for approximately five years – a significant achievement for a country considered to be one of the lower lincome ones, liberated only in 1971 with a very dense population.

  • Pakistan showed comparatively slower and more stagnant growth over the two decades. Pakistan’s internal and external conflicts with world leaders and surrounding nations evidently plays a role in that.

  • The diverging trajectories suggest differing economic policies, export performance, and development strategies across the three nations.

Author’s note

This was very much of an introductory project that was designed to familiarize myself with:

  • Practical usage of python scripting in various fields.
  • The process of completing a project by starting from sourcing data all the way to finding indicative insights from those.
  • Using documentation tools like Quarto and Typst to write different types of documentation like this one and a standard scientific-paper-style pdf report, styling and organizing tools.

I humbly ask the reader to not critique this work by putting it under the same category as impactful data science research respected by the community. For a deeper rooted work, check out my PracticeProjects repo, where there are some other “practice projects” I had done to develop the necessary skillsets for this workflow: which are progressively bigger and more complex. Other original research ideas and development projects are currently in persuit.

This work has been a good introductory project for me which has lead me to persue newer goals and ideas.

References