End-to-End Python, Pandas, NumPy & MySQL Analytics Case Studies
Four applied data analytics projects spanning conversational behaviour profiling, personal fintech spend intelligence, SQL financial fraud detection, and OTT streaming retention analytics.
UNLOX-DS is a curated Data Science and SQL Analytics portfolio by Pradhap Kumar S, showcasing practical, business-driven problem solving across four real-world analytical domains: social behaviour analytics, personal finance & UPI transaction intelligence, financial fraud detection, and subscription/OTT product analytics. Each project moves from raw, messy data or relational schemas to clean pipelines, behavioural metrics, and actionable insights.
| # | Project Name | Domain | Core Stack | File |
|---|---|---|---|---|
| 1 | GroupDNA | Conversational & Behavioural Analytics | Python, NumPy, datetime |
PRADHAPKUMAR_MINOR_PROJECT_1.ipynb |
| 2 | SpendDNA | FinTech / Bank & UPI Spend Intelligence | Python, Pandas, NumPy | Pradhapkumar_minorproject2.ipynb |
| 3 | RedFlag: The Fraud Files | Financial Fraud Pattern Detection | SQL (MySQL, CTEs, Aggregations) | PRADHAPKUMAR_S_MINOR_PROJECT_3 (1).doc |
| 4 | BingePlay Analytics | OTT Streaming & Retention Analytics | Python, mysql.connector, Pandas, MySQL |
_BingePlay_Project (1).doc |
- Objective: Transform raw group chat logs into participant engagement metrics, activity heatmaps, and communication archetypes.
- Pipeline:
- Custom chat parser & group overview statistics (
participants, message counts, date ranges). - Temporal analysis for peak active days and hours.
- NumPy matrix-based activity heatmap across participants and time windows.
- Top-10 keyword extraction, response speed & silent streak computation, and rule-based personality archetypes.
- Custom chat parser & group overview statistics (
- Objective: Convert 6 months of noisy bank and UPI transaction records into structured personal finance and behavioural spending insights.
- Pipeline:
- Data Cleaning: Standardized mixed date formats (
datetime), stripped currency symbols (₹,Rs., commas) into numeric amounts, normalized transaction types (DR/CR→debit/credit), and removed invalid/duplicate rows. - Feature Engineering: String-based vendor extraction from raw transaction descriptions and business-friendly category mapping.
- Analytics: GroupBy category/monthly spend trends, behavioural profiling, anomaly detection, and executive summary reporting.
- Data Cleaning: Standardized mixed date formats (
- Objective: Identify suspicious financial behaviour across transaction logs using targeted SQL detection rules (
redflag.transactions). - Fraud Patterns Implemented:
- Velocity Fraud & Velocity Spikes: High daily transaction frequency (
>= 30/day) and monthly spikes (5xuser baseline via CTEs). - Card Testing & Structuring: Repeated micro-transactions (
< ₹10), round-amount clustering, and just-under-threshold structuring (₹9,999). - Behavioural & Network Risk: Failed-then-succeeded bursts (
TIMESTAMPDIFFwithin 10 minutes), odd-hour concentration (2 AM – 5 AM), mule account credit bursts, refund abuse (> 40%), merchant collusion (<= 5unique users), and dormant-then-active reactivation (>= 90days).
- Velocity Fraud & Velocity Spikes: High daily transaction frequency (
- Objective: Query a relational OTT database (
BingePlay) from Python (mysql.connector+pandas.read_sql) to evaluate revenue, engagement, and churn risk. - 12 Business Questions Solved:
- Revenue & Growth: Active subscriptions & MRR (
2,340active /₹784,260monthly revenue), monthly signup cohorts, and over-paying Premium/Family user detection. - Content & Device Engagement: Watch-session completion rates by device, ratings distribution, Originals vs. Acquired performance, and binge-day detection.
- Retention & Churn: Q1 signups who never watched, plan upgrade paths, cliffhanger comeback analysis, weekly engagement streaks, and churn signal detection.
- Revenue & Growth: Active subscriptions & MRR (
- Data Wrangling & ETL: Cleaning inconsistent dates, currency strings, missing values, and duplicates in Pandas.
- Analytical & Numerical Computing: Matrix heatmaps, aggregations, and behavioural segmentation in NumPy & Python.
- Production-Style SQL:
GROUP BY/HAVING,CASElogic, self-joins withTIMESTAMPDIFF,DATEDIFF, and multi-step CTEs (WITH). - Python–Database Integration: Parameterized SQL execution and DataFrame reporting using
mysql.connectorandpandas.read_sql.
UNLOX-DS/
├── PRADHAPKUMAR_MINOR_PROJECT_1.ipynb # Project 1: GroupDNA (Python + NumPy)
├── Pradhapkumar_minorproject2.ipynb # Project 2: SpendDNA (Python + Pandas + NumPy)
├── PRADHAPKUMAR_S_MINOR_PROJECT_3 (1).doc # Project 3: RedFlag SQL Fraud Detection
├── _BingePlay_Project (1).doc # Project 4: BingePlay SQL + Python Analytics
├── LICENSE # MIT License
└── README.md # Portfolio documentation
# Clone the repository
git clone https://github.com/Pradhapkumar/UNLOX-DS.git
cd UNLOX-DS
# Open Jupyter Notebooks
jupyter notebookNote:
.ipynbfiles render directly on GitHub for quick recruiter review;.docfiles contain the complete documented SQL queries and Python-MySQL outputs.
This repository is licensed under the MIT License — see the LICENSE file for details.