Skip to content

kaushal380/CarSales

Repository files navigation

Car Sale Predictions

Thank you for visiting this repository! Welcome

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

Instructions To Use:

  1. Clone this repository into your project folder
  2. Install the following dependencies if you do not already have them (installation: pip install "module name")
    • Pandas
    • Matplotlib
    • scipy
    • tkinter
  3. Once the above prequisits are met, run the App.py file
  4. Change the path names to the relative path of the Car_Sales.csv if the pathError comes up. (this step is mostly not needed)
  5. Navigate through different classes and modules just to see how each of them are functioning and to know their role

Features

1) Dashboard

In the dashboard, the top 10 most sold cars and the top 10 most expensive cars of the current industry are being dispayed. image The following method: dataAnalyze.getTopSoldData() will fetch the top 10 sold data The following method: dataAnalyze.getTopExpensiveData() will fetch the top 10 expensive data

2) Car Data analysis

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

  1. dataAnalyze = DataAnalysis("Car_sales.csv") dataAnalyze method will fetch the dataframe
  2. data = dataAnalyze.getSortedData(dictOption_header[dropdown_var.get()], IsIncreasing=isAscending.get()) data consists of the updated list based on the selections

3) Car price prediction

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:

Factors considered while selecting

  1. Powerf Factor Vs Price image Based on this graph we can say that there is a correlation between these factors predicted equation: a(x+b) + c**

  2. Resale value Vs Price image These factor again shows a strong correlation between resale and price predicted equation:** ax^2 + bx + c**

  3. Horsepower Vs Price image 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

Future Scope

  • 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

Feel free to make any edits and create a pull request!

THANK YOU!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages