a) Write a python program that reads the data file class-a.csv into a data frame and displays 3 rows of those data. Please import the suitable library.b) Write a function which receives the data frame from (a) to calculate the BMI and return the BMI data. Include the function call. Height data is in meter and Weight data is in kg. The formula for BMI as follows:BMI = weight / height2c) Display the BMI data in sequence and calculate the mean of BMI. If the mean of BMI is exceeded 25 then display “Students are overweight”.d) Plot the pie chart for BMI distribution with student’s name as a label. Please import the suitable library.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here