Question: A = np.reshape(range(1,7),(2,3)) # create a 2x3 array B = np.reshape(range(1,7),(3,2)) # create a 3x2 array C = np.reshape(range(1,10),(3,3)) # create a 3x3 array print('A=

A = np.reshape(range(1,7),(2,3)) # create a 2x3 array
B = np.reshape(range(1,7),(3,2)) # create a 3x2 array
C = np.reshape(range(1,10),(3,3)) # create a 3x3 array
print('A= ',A, ' B= ', B, ' C= ', C)
Below we make three arrays, A, B, and c, of different shapes. [57] print ( - * *50) \# Line of Separation - In the code cell below, use the mean method in numpy along with axis parameters to do the following: - Add the array containing the mean of each row of A to the array containing the mean of each column of B and print the result. (The answer should be [5.,9.]) - Add the array containing the mean of each column of A to the array containing the mean of each row of B and print the result. - Add the array containing the mean of each column of A to the array containing the mean of each row of C and print the result. - Add the array containing the mean of each row of B to the array containing the mean of each row of c which is then added to the array containing the mean of each column of c and print the result. - In the Markdown cell that follows the code cell, explain why we cannot add the array containing the mean of each row of A to the array containing the mean of each row of c. Answer all parts please thank you! Will upvote
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
