Question: python complete the code as shown B Question 2 (20 pta) Write a function that will take a numpy array. First remove the minimum and
B Question 2 (20 pta) Write a function that will take a numpy array. First remove the minimum and maximum values in the array, then standardize the elements and return the resulting array. To standardize, you need to first find the mean (a) and standard deviation (a) of all values (after removing minimum and malmum), then each value needs to be updated using the following formula tu the updated array Import umpy as p det inmax_filtered standardizela) pass remove minem your code goes here Bremove maximum your code gees here estandardite # your code gees bere return the standardized array arr = np.array(04, 43, 73, 82, 22. 12. 53, 94, 661) Ninax_filtered standardizelarr) returns array(I-0.95001904,-0.51102340, 0.00022836. 1.42772301. -1.35557970, -0.01430091.6.6936
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
