Professional Documents
Culture Documents
IP Project Final
IP Project Final
1. Bar Graph
Source Code:
import pandas as pd
import matplotlib.pyplot as plt
data = open("macintosh/Users/harshshah/Downloads//Ip Dastaset.csv")
df = pd.read_csv(data)
plt.xticks(('TATA','Jaguar','Audi','BMW','Maruti Suzuki','Mercedes',
'Hyundai','Honda','Volvo','Ford','Isuzu','Toyota','Jeep',
'Volkswagen'), rotation = 'vertical')
plt.show()
Output:
Description
A bar chart or bar graph is a chart that presents categorical data with
rectangular bars with heights or lengths proportional to the values that
they represent. bar() is used to plot vertical bar graphs.
The following graph compares the No. of customers ,15500 being the
highest number of customers and 6700 being the lowest number of
customers.
2.Line Graph
Source Code:
import pandas as pd
import matplotlib.pyplot as plt
data = open("macintosh/Users/harshshah/Downloads//Ip Dastaset.csv”)
df = pd.read_csv(data)
Output:
Description:
A line chart or line graph is a type of chart that displays information
as a series of data points called ‘markers’ connected by straight line
segments. plot()is used to plot a line graph.
The following graph helps us to analyze the ratings given by the
customers who bought the particular car model, hence gathering
the data in the same place.
3.Histogram
Source Code:
import pandas as pd
import matplotlib.pyplot as plt
data = open("macintosh/Users/harshshah/Downloads//Ip Dastaset.csv")
df=pd.read_csv(data)
plt.hist(df['Ratings'],bins=None,color='orange’')
plt.xlabel('Ratings')
plt.xticks([1,2,3,4,5,6,7,8,9,10])
plt.show
Output:
Description:
A histogram provides a visual interpretation of numerical data by
indicating the number of data points that lie within a range of values.
hist() is used to plot a histogram.
The following graph represents the ratings of the car model per
customer.
4.Horizontal Bar Graph
Source Code:
import pandas as pd
import matplotlib.pyplot as plt
data = open("macintosh/Users/harshshah/Downloads//Ip Dastaset.csv")
df=pd.read_csv(data)
plt.barh(df['Price'],df['Ratings'],color='violet')
plt.show()
Output:
Description
barh() is used to plot horizontal bar graphs.
The following graph displays the ratings given to a specific car
having its specific price.
5. Double Bar Graph
Input:
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
Output:
Description:
Multiple bar graphs are used to plot multiple data ranges on the same bar
chart creating multiple bars. PyPlot does not provide a specific function for
this, but it can be created by exploiting the ‘width’ and ‘color’ arguments of
bar().
The following graph compares the ratings given to the car with the ownership
of that specific car. Here, the orange bar represents the ratings and the violet
bar represents the ownership of the car.
We have collected the dataset of Cars24 which provides car retail services.
For this project we have only focused on the used cars retail services.
The above data set includes the list of the car models offered by Cars24 with the
prices and ratings mentioned. It shows the average sales of cars per month who
have bought a particular car from the list and also the price.
PREFACE
In this project we will simplify and analyze the data collected
from different car companies. The following simplification of the
data set into visual forms of graphs will help the future car
customers to scan the data at a simple glance, hence making
the whole process time effective.
OBJECTIVE
The automobile industry today is the most profitable industry. Due
to increase in the income in both rural and urban sectors and
availability of easy finance are the main drivers of high volume car
segments. The objective of this project is to visualize and provide
various insights from the considered Indian automobile dataset by
performing data analysis. The considered dataset is of Indian cars,
that consists of various features such as company name , model,
average sales per month, ratings given to the car, cost of the car.
The insights that could be estimated from this dataset would be
features such as price of a specific car model that could be
estimated using the other attributes of that particular car .
References
AISSCE (2022-23)
Certificate
INDEX
1 Preface
2 Objective
3 Dataset
4 Programs
5 Conclusion
6 References