This project is a Personal Expense Tracker built using Python, Pandas, NumPy, and Matplotlib. It helps users record daily expenses, analyze spending patterns, and visualize category-wise spending. The goal of the project is to improve financial awareness and budgeting habits by showing clear insights into where money is being spent.
Managing personal expenses is important for tracking savings and avoiding unnecessary spending. This project provides a simple menu-based system where users can:
- Add daily expense records
- View all saved expenses
- See monthly spending totals
- Analyze category-based spending
- Generate bar chart visualizations
All expense records are stored in a .csv file so data is not lost when the program is closed.
| Concept / Library | How It Is Used |
|---|---|
| Pandas | Storing, reading, grouping, and analyzing data |
| NumPy | Supporting numerical operations for calculations |
| Matplotlib | Creating bar charts for spending visualization |
| CSV File Storage | Saving expenses permanently without database |
- When the program starts, it checks if
expenses.csvexists.- If not found, a new file is created.
- The user interacts with a menu to perform actions.
- Data entered is stored as a new row in the CSV file.
- Grouping and summarizing is done using Pandas:
- By Month β total spending per month
- By Category β total spending per category
- A bar chart is displayed showing spending comparison between categories.
| Option | Description |
|---|---|
| 1 | Add a new expense entry |
| 2 | View all expenses in table form |
| 3 | Show monthly spending summary |
| 4 | Show category-wise spending & bar chart |
| 5 | Exit the program |