Streamlining the budgeting process through automation allows users to swiftly identify their spending patterns, optimize income, and gauge their financial well-being in comparison to the national average.
We are creating a tool that analyzes and visualizes expenses made last year and determines which month, category of transactions he spent more and to track his expenses and to know if he spent right the whole year. Once the user understands how they spent their money last year, they will be better equipped to set goals for the future.
First, we read and clean the CSV file for our analysis. The CSV file contains data on numerous expenses from last year. Use the personal transaction data to complete the following steps:
- Utilize Pandas to read the CSV file into DataFrames, ensuring the conversion of the date to a DateTimeIndex.
- Adjust data types as necessary.
- Remove the extra column 'description.'
- Change the category column to 'unassigned.'
We analyzed the data to determine what month or category the user spent more and to know if they spent right the whole year. Specifically, we will do a analysis by calculating the total amount spent for each category and month.
We presented data and graphs for the following code:
We asked the user this questions:
- Are you satisfied with your spending? (yes/no): No
- In that case, let's proceed with addressing your need for help with budgeting.
We have developed a widget that enables users to delve deeper into their summary table, allowing them to explore specific categories and/or months.
- Created a user input that asks the question, "Which month would you like to explore further?"
- Filtered the data to include only transactions from the selected month.
- Created a table for the selected month with two columns: category and amount.
- Calculated the total amount across all categories for the chosen month.
- Plotted a bar chart to visualize the amount spent in each category.
-
Asked user for new monthly budget they would like to expect in parts:
- Their Monthly Income
- Expected Mortgage/Rent Expense
- Expected Shopping Expense
- Expected Utilities Expense
- Expected Food Expense
- Expected Gas Expense
- Expected Monthly Savings Goal
-
Calculated user's monthly budget by the sum of all the user's expenses for new month.
-
Function that calculated the impact on savings goal to know if the user is on track to meet the savings goal.
-
Plotted and created a function to compare budget and expenses.
- Obtained statistics on the average American monthly budget from multiple websites.
- Calculated the difference between the average American monthly budget and the user's monthly budget.
- Created a table column displaying the Category, average American monthly budget, and the user's monthly budget input.
- Plotted both on one graph, comparing the average American monthly budget and the user's monthly budget input.
The Ascent - American Households' Average Monthly Expenses: $6,081
Bankrate - The Average American Household Budget
ValuePenguin - Average Household Budget: How Much Does the Typical American Spend?
RentCafe - Average Rent in the U.S.
J.D. POWER - RentCafe - How Much Do People Spend On Gas Each Month?