Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question No . 3 : Data Summaries and Visualization For this question, the provided dataset contains information about cars sold through dubizzle in April 2
Question No: Data Summaries and Visualization
For this question, the provided dataset contains information about cars sold through dubizzle in April Each data rowobservation represents a car being sold. Since this is real data, all elements about customer identification were deleted due to privacy concerns. Descriptions for the data attributes are shown in the table below.
You are required to load the data into Python and answer the following items:
a How many attributes and observations are there in the provided dataset?
b Construct a pie chart based on the car brand. Which brand has the most sold cars?
c Calculate the mean and the fivenumber summary of the car prices.
d Build a bar chart for the car fuel type. Which fuel types have the highest and lowest number of cars?
e Plot a histogram of the car prices. Describe the histogram.
f Construct a box plot of the car age. Are there outliers?
g Filter the data for the "Toyota" brand, then show a bar plot of the seller type.
h Filter the data for the "Nissan" brand, then construct a pie chart for the seating capacity. What is the seating capacity of the most sold Nissan cars?
i Show a heatmap of correlations between numerical variables present in the data. Are there any significant correlations? Explain.
Hint: For importing a sheet from an excel file in pandas, use the following syntax:
pdreadexcelfilenamexlsx'sheetname'
tableAttributeType,DescriptionpriceNumeric,The price of the car was sold atbrandCategorical,The car brand.modelCategorical,The car model.trimCategorical,The specific trim of the car model.kilometersNumeric,The car mileage.yearNumeric,The year the car was manufactured.vehicleageyears,Numeric,The car age.regionalspecs,Categorical,The car regional specification.doorsCategorical,The number of doors in the car.bodytype,Categorical,The car body type.fueltype,Categorical,The type of fuel used by the car.seatingcapacity,Numeric,The number of passengers the car can accommodate.transmissiontype,Categorical,The type of car transmission automatic or manualenginecapacityccCategorical,The engine capacity if information is availablehorsepowerCategorical,The range of horsepower for the car.noofcylinders,Numeric,The number of cylinders in the car engine.exteriorcolor,Categorical,The color of the car body.interiorcolor,Categorical,The color of the car interior.warrantyCategorical,The car warranty type.cityCategorical,The car location by city.areaname,Categorical,The car location by area in a city.sellertype,Categorical,The type of seller through which the car was sold.
PLEASE CREATE THE DATA FILE WITH CODE INPUT AND OUTPUT DONT USE CHATGPT PLEASE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started