This project demonstrates an end-to-end data analytics workflow using Google Colab and Supabase. The goal is to analyze monthly revenue data (Jan–Dec 2024) stored in Excel/CSV format and answer real-world business questions using SQL.
- 🐍 Python (Google Colab)
- 🧮 Pandas
- 📁 CSV/Excel
- 🌐 Supabase (PostgreSQL)
- 📝 Supabase SQL Editor
12 monthly CSV files named in the format:
monthly_revenue_plan - Jan_2024.csv
, ..., monthly_revenue_plan - Dec_2024.csv
Columns:
date
city_code
plans
plan_revenue_crores
-
Data Upload
Uploaded all 12 monthly files to Google Colab usingfiles.upload()
. -
Data Processing
- Read all CSVs into Pandas DataFrames
- Concatenated into one final DataFrame
- Cleaned and validated the data
-
Supabase Connection
- Used
psycopg2
to connect to Supabase PostgreSQL instance - Created a table and uploaded the cleaned data
- Used
-
SQL Queries & Analysis
All queries were written and executed using the Supabase SQL Editor.
- Total Revenue Calculation
- Revenue Tracking by City and Date
- Top Revenue-Generating Plan
- Retrieve City Codes Using a Specific Plan
- Total Revenue Contribution for Plan P3
- Cloud-based SQL workflow with Supabase
- Writing ad-hoc SQL queries for business insights
- Automating Excel import and upload to PostgreSQL
- Handling real datasets in Python
.
├── notebooks/
│ └── monthly_revenue_analysis.ipynb # Google Colab notebook
├── data/
│ └── monthly_revenue_plan - Jan_2024.csv
│ └── ...
├── README.md