Question: Question 4 ( 1 5 pts ) : Given below is a code to extract the fifth column ( Height ( inches ) ) and
Question pts:
Given below is a code to extract the fifth column Height inches and the last column Weight lbs of the nfl DataFrame as two numpy arrays named npheightin and np weightlb Using the two numpy arrays, write your code to complete the following tasks.
Multiply npheightin by to convert all height measurements from inches to meters. Store the new values in a new array, npheightm
Multiply npweightlb by to go from pounds to kilograms. Store the resulting numpy array as npweightkg
Use npheightm and npweightkg to calculate the BMI of each player. Use the following equation:
BMI
Store the resulting numpy array as bmi
::
arrayiloc:values
arrayiloc:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
