1. Write a function that takes two inputs: a numpy array and a scalar (a number). The function outputs a numpy array in which the column indicated by the scalar is transformed to Z-score while all...

1. Write a function that takes two inputs: a numpy array and a scalar (a number). The function outputs a numpy array in which the column indicated by the scalar is transformed to Z-score while all other columns are maintained. If no scalar is provided, all columns are transformed. The purpose of this requirement is to demonstrate python and numpy proficiency, so do not use helper functions in other Python packages to calculate the Z-score. 2. Demonstrate good practices in function construction such as testing for validity of inputs. In general, in this and other projects involving coding, your work will be evaluated on whether the code is clean and easy to understand. 3. Run and produce results using these inputs: x1 = np.array([[4,3,12],[1,5,20],[1,2,3],[10,20,40],[7,2,4 4]]); x2 = 3; x3 = 6; x4 = 'two' 4. Run the function as follows and generate results. o myz(x1) o myz(x1,x2) o myz(x1,x3) o myz(x2,x3) o myz(x1,x4) 5. Briefly, list concepts you learned from the project. 6. Produce a report using Jupyter.
Sep 15, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here