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...


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 / height2


c) 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.


Table 1 shows the data of class A students in University XYZ. The data file name is class-<br>a.csv. The data consist of information on gender, height, and weight for every student.<br>Table 1: class-a.csv<br>Student ID<br>Name<br>Gender<br>Height<br>Weight<br>23345<br>Ahmad Abu<br>Male<br>1.68<br>84<br>23356<br>Siti Haliza Karim<br>Female<br>1.57<br>66<br>23311<br>Nurul Arifin<br>Female<br>1.63<br>45<br>23344<br>Mohd Ahmad<br>Male<br>1.75<br>87<br>23317<br>Hassan Ismail<br>Male<br>1.71<br>72<br>

Extracted text: Table 1 shows the data of class A students in University XYZ. The data file name is class- a.csv. The data consist of information on gender, height, and weight for every student. Table 1: class-a.csv Student ID Name Gender Height Weight 23345 Ahmad Abu Male 1.68 84 23356 Siti Haliza Karim Female 1.57 66 23311 Nurul Arifin Female 1.63 45 23344 Mohd Ahmad Male 1.75 87 23317 Hassan Ismail Male 1.71 72

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here