An intuitive and lightweight web app to help you track your personal expenses, categorize spending, and visualize spending patterns using interactive charts.
- Add daily expenses with date, category, amount, and description
- Load existing expenses from a CSV file
- Save current expenses to a CSV file
- Visualize spending by category using a bar chart
- Persistent data handling via Streamlit
session_state
- Python
- Streamlit β for UI and app deployment
- Pandas β for data manipulation
- Matplotlib & Seaborn β for data visualization
# Clone the repository git clone https://github.com/your-username/personal-expense-tracker.git cd personal-expense-trackerpip install streamlit pandas matplotlib seaborn
streamlit run app.py
π Replace app.py with your actual Python file name if different.
- Add Expense: Use the sidebar to input date, category, amount, and description.
- Save to CSV: Save your entries to a local CSV file using the sidebar button.
- Load Expenses: Upload an existing CSV file to reload your expense data.
- Visualize Data: Click the "Visualize Expenses" button to view your spending habits.
The app uses Seaborn to display a bar chart comparing the total amount spent per category. Charts update dynamically based on the entered data.
βββ app.py
βββ expenses.csv # (optional) generated by saving expenses
βββ README.md
Thanks to:
- Streamlit for making Python apps so easy to build
- The amazing Python community for the libraries powering this tracker