Question: please in python and it's only allowed to use numpy package and matplotlib def convertUnits(values, coeff): (5 pts) function that converts the units of values

 please in python and it's only allowed to use numpy packageand matplotlib def convertUnits(values, coeff): (5 pts) function that converts the units

please in python and it's only allowed to use numpy package and matplotlib

def convertUnits(values, coeff): (5 pts) function that converts the units of values of a 2-D array using the coefficients from "coeff" and returns the equivalent numpy array in the new units. Parameters: values: 2-D numpy array with values such as: Heights and Weights in meters and kilograms: (1.83, 67), [1.55, 62], [1.78, 72] coeff: 1-D array with coefficients for conversion Example: [3.28, 2.204] returned numpy array should be the same shape as "values" but with the values in feet (ft) and pounds (lbs) IF IF IT return None def displayAgeHistogram(people): (5 pts) function that displays a histogram using 5 bins of ages for people who's height is between 1.5, and 1.9 (inclusive). Parameters: people: 2-D numpy array with first column as height and second column as age. Example: [1.83, 19], [1.3, 10), [0.5, 2] return None

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!