Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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=

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago