This project has been made to give a detailed analysis of cars in the market currently. To help customers by providing them a approximate price of their inteded car or car with their required features
- Clone this repository into your project folder
- Install the following dependencies if you do not already have them (installation: pip install "module name")
- Pandas
- Matplotlib
- scipy
- tkinter
- Once the above prequisits are met, run the App.py file
- Change the path names to the relative path of the Car_Sales.csv if the pathError comes up. (this step is mostly not needed)
- Navigate through different classes and modules just to see how each of them are functioning and to know their role
In the dashboard, the top 10 most sold cars and the top 10 most expensive cars of the current industry are being dispayed.
The following method: dataAnalyze.getTopSoldData() will fetch the top 10 sold data
The following method: dataAnalyze.getTopExpensiveData() will fetch the top 10 expensive data
In the Car Data analysis, this page is responsible for giving the sorted items of car based on all the attributes like price, milage, horsepower Etc.
Screen.Recording.2024-07-16.185615.mp4
Here we can see the several attributes that we can sort the cars by and also a checklist which indicates whether you want it to be sorted least value to highest value or the other way around
- dataAnalyze = DataAnalysis("Car_sales.csv") dataAnalyze method will fetch the dataframe
- data = dataAnalyze.getSortedData(dictOption_header[dropdown_var.get()], IsIncreasing=isAscending.get()) data consists of the updated list based on the selections
Inorder to predict the price of a car, we need to understand which attributes play a huge role determining the car's price. In order to find this out, we have made use of matlplot lib to see the correlation between attributes and prices, here are the results:
-
Powerf Factor Vs Price
Based on this graph we can say that there is a correlation between these factors
predicted equation: a(x+b) + c** -
Resale value Vs Price
These factor again shows a strong correlation between resale and price
predicted equation:** ax^2 + bx + c**
Now based on these values we have made our price prediction page where customers can select the value for each of these attributes and get the approximate price of the car
Screen.Recording.2024-07-16.214446.mp4
Here we have used the sliders to select the values for corresponding attributes where upon clicking submit we will get the approximate price
- Major scope of this project lies on how well the prediction of price is being made, so improvement is always there interms of that
- Improving the GUI and make it more attractive
- This can be made more dynamic by taking the data directly from the companies sales data, rather than relying on the static dataset
