Skip to content

MrPrince419/expense-tracker

Repository files navigation

Expense Tracker Dashboard

Table of Contents


Project Overview

Expense Tracker Dashboard is a data-driven financial management application designed for analytics professionals and individuals. It streamlines expense tracking, automates data cleaning, and delivers interactive visualizations to help users make informed financial decisions. Built with Streamlit, it supports multi-format data imports, secure user management, and actionable insights through a modern dashboard interface.

Landing Page


Problem Statement

Managing personal and business finances is often hindered by disparate data sources, inconsistent formats, and a lack of actionable insights. This project addresses the need for a unified platform that automates the ingestion, cleaning, and analysis of financial transactions, enabling users to identify spending patterns, detect anomalies, and optimize their financial health.


Data Sources


Tools and Technologies

See requirements.txt for the full list.


Methodology

Data Cleaning and Preprocessing

  • Automated column mapping using fuzzy matching for diverse file formats (pages/1_Upload.py).
  • Removal of duplicates and standardization of date, amount, and category fields.
  • Handling missing values and outlier detection.
  • Data validation to ensure integrity and completeness (utils.py).

Exploratory Data Analysis (EDA)

  • Summary statistics of income and expenses.
  • Visualization of spending trends over time.
  • Category-wise expenditure breakdown.
  • Detection of unusual transactions and anomalies (pages/2_Dashboard.py).

Feature Engineering

  • Creation of new features such as:
    • Monthly savings rate
    • Rolling averages of expenses
    • Categorization of merchants and transaction types

Modeling Techniques

  • Time series analysis for trend detection.
  • Clustering for identifying spending patterns.
  • Anomaly detection using statistical thresholds.

Validation Methods

  • Cross-validation for model robustness.
  • Manual review of flagged anomalies.
  • Comparison with historical data for consistency.

Results and Insights

  • Key Findings:
    • Identified top spending categories and peak expense periods.
    • Detected duplicate and anomalous transactions, reducing data errors.
    • Visualized monthly savings trends, highlighting opportunities for budget optimization.
  • Visualizations:
    • Interactive dashboards for income vs. expenses.
    • Pie charts for category breakdowns.
    • Time series plots for trend analysis.

Dashboard & Admin Panel Visuals

Dashboard

Dashboard 1 Dashboard 2 Dashboard 3 Dashboard 4

Upload Interface

Upload 1 Upload 2 Upload 3

Admin Panel

Admin Panel 1 Admin Panel 2 Admin Panel 3 Admin Panel 4 Admin Panel 5


Conclusion and Recommendations

The Expense Tracker Dashboard automates financial data analysis, providing users with clear, actionable insights. Users are encouraged to regularly review their dashboards, set savings goals, and investigate flagged anomalies to maintain financial health.


Challenges and Limitations

  • Data Quality: Inconsistent formats and missing values in user-uploaded files.
  • PDF Extraction: Variability in bank statement layouts affects extraction accuracy.
  • Scalability: Performance may degrade with very large datasets.
  • User Privacy: Local storage is used; cloud integration is not implemented.

Future Work

  • Integrate with banking APIs for real-time data import.
  • Enhance anomaly detection with machine learning models.
  • Add support for multi-currency and investment tracking.
  • Deploy as a web application with user authentication and cloud storage.

Appendices

Data Dictionary

Variable Description
Date Transaction date (YYYY-MM-DD)
Name Merchant or transaction details
Category Expense category (e.g., Food, Utilities)
Amount Transaction amount (positive/negative)
Type Income or Expense (if present)

Code Repository & Key Files

References


For support, contact PrinceUwagboe44@outlook.com

About

A Streamlit-based financial management tool for data analysts. Import multi-format data (CSV, Excel, JSON, PDF, etc.), automate cleaning and column mapping, and unlock interactive visualizations for spending patterns, trends, and anomalies. Features secure user storage, export options, and admin analytics. Ideal for transforming raw financial data

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages