Skip to content

Debzillaa/kolkata-haldia-port-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Kolkata & Haldia Port Traffic Analysis (1950–2021) 🚒

Project Overview

This data science project cleans, merges, and visualizes 71 fiscal years of historical cargo volume data from the Kolkata and Haldia Ports in India. The objective is to identify peak shipping periods, long-term macroeconomic trends, the shift in trade strategies, and the evolution of the cargo mix over seven decades.

πŸ“‚ Data Source

The raw historical data for this project was sourced from the Open Government Data (OGD) Platform India. The datasets contain audited fiscal year records detailing principal commodity breakdowns and overall cargo traffic metrics for the Syama Prasad Mookerjee Port (Kolkata Dock System and Haldia Dock Complex).

πŸ“Š Key Insights & Visualizations

1. The Macro Trajectory (Smoothing Economic Noise)

By applying a 10-year moving average to the raw traffic data, we filter out short-term economic shocks to reveal a massive, sustained explosion in port volume beginning in the late 1990s. Moving Average Trend

2. The Shift to Diversification (The Pareto Principle)

Historically, the ports relied on a few key bulk commodities. However, by the 2000s, miscellaneous "Other Commodities" completely dwarfed traditional bulk goods like Coal and Petroleum, indicating a massive structural shift toward a diversified port business model. Diversification Index

3. Trade Strategy (Imports vs. Exports)

The port has consistently operated as an import-dominant hub. The ratio of imports to exports shows the region's heavy reliance on incoming foreign goods rather than domestic export production. Trade Strategy Ratio

4. The Dawn of Containerization

Container shipping did not exist at these ports in 1950. Tracking its emergence against traditional bulk goods like Food Grains shows the modernization of maritime logistics. Containerization Dawn

(Note: A total of 10 advanced statistical charts, including Correlation Heatmaps, Decadal Boxplots, and YoY Volatility, are available in the outputs/figures/ directory).


πŸ› οΈ Project Architecture & Pipeline

The project follows a standard, reproducible data science workflow:

kolkata-haldia-port-analysis/
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ raw/             # Immutable historical CSV datasets
β”‚   └── processed/       # Cleaned, merged 71x18 dataset ready for analysis
β”œβ”€β”€ notebooks/
β”‚   └── 01_eda_and_cleaning.ipynb  # Phase 1: Exploratory Data Analysis
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ data_cleaning.py # Phase 2: Automated cleaning, imputation, and merging
β”‚   └── visualization.py # Phase 3: Seaborn/Matplotlib chart generation
β”œβ”€β”€ outputs/
β”‚   └── figures/         # 10 High-resolution PNG visualizations
β”œβ”€β”€ requirements.txt     # Project dependencies
└── README.md

Data Processing Methodology

  • Imputation: Early historical years lacking container/coastal tracking data were filled using zero-imputation (fillna(0)) to maintain scientific accuracy.
  • Standardization: Extracted clean integer years from fiscal date strings (e.g., 1950-51 β†’ 1950) and applied rigorous naming conventions to all columns.
  • Feature Engineering: Created new relational metrics including YoY_Growth, Import_Export_Ratio, moving averages, and Top_5_Combined to unlock deeper economic analysis.

πŸ’» How to Run This Project Locally

If you wish to clone this repository and reproduce the pipeline on your local machine:

1. Clone the repository and navigate into the folder:

git clone https://github.com/Debzillaa/kolkata-haldia-port-analysis.git
cd kolkata-haldia-port-analysis

2. Set up a virtual environment and install dependencies:

python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
pip install -r requirements.txt

3. Run the data pipeline:

# Step 1: Clean the raw data and generate the merged CSV
python src/data_cleaning.py

# Step 2: Generate all 10 high-resolution charts
python src/visualization.py

πŸ“¦ Dependencies

  • pandas - Data manipulation and merging
  • matplotlib - Core plotting engine
  • seaborn - Advanced statistical visualizations

About

πŸ“Š Data science project analyzing 71 years of historical port traffic data from Kolkata & Haldia (1950–2021). Covers data cleaning, merging, EDA, and 10 advanced visualizations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors