This document discusses analyzing a Cars.csv dataset using Pandas in Python. It includes instructions to import libraries, read in the csv file, describe qualitative and quantitative columns, calculate probabilities for sedan and gas fuel type cars, find null values in each column, and replace nulls using maximum, minimum, linear interpolation, and modulus methods. It also includes calculating the probability of engine size being over 130 given car height is over 50.
This document discusses analyzing a Cars.csv dataset using Pandas in Python. It includes instructions to import libraries, read in the csv file, describe qualitative and quantitative columns, calculate probabilities for sedan and gas fuel type cars, find null values in each column, and replace nulls using maximum, minimum, linear interpolation, and modulus methods. It also includes calculating the probability of engine size being over 130 given car height is over 50.
This document discusses analyzing a Cars.csv dataset using Pandas in Python. It includes instructions to import libraries, read in the csv file, describe qualitative and quantitative columns, calculate probabilities for sedan and gas fuel type cars, find null values in each column, and replace nulls using maximum, minimum, linear interpolation, and modulus methods. It also includes calculating the probability of engine size being over 130 given car height is over 50.
#Read and show the file "df = pd.read_csv('Cars.csv')
#use describe function for qualatitve columns #use describe function for quantitative columns 1- What is the Probability that the Car is Sedan ?¶ 2- What is the Probability that the car is Sedan and works with gas ? 3- What is the probability that a car is Sedan given it is a gas fuel type? 4- How many null values are there in each column? 6- 4a) Replace the null value of column "wheelbase" with the max value of the same column 7- 4b) Replace the null value of column "carwidth" with the Min value of the same column 8- 4c) Use Linear Interpolation to change the null value of column "carheight" 9- 4d) Replace the null value of column "enginesize" with the mod of the same column 10- Given that the car height is higer than 50, find the probability that the car engin size is greater than 130?