You are on page 1of 1

#import all required libraries

#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?

You might also like