Question: Consider the below array. import numpy as np arr = np.arange(12).reshape(3,4) print(arr) Write a Python code to swap column 1 with column 2. Write a

Consider the below array.

import numpy as np

arr = np.arange(12).reshape(3,4)

print(arr)

Write a Python code to swap column 1 with column 2.

Write a Python code to swap row 0 with row 1.

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!