Question: 6. Create the following 4x5 matrix using Numpy command X2= array([[34, 5, 7, 4, 13), [8. 6, 11, 8,12] [9. 6, 5, 3, 17), [7,

6. Create the following 4x5 matrix using Numpy command X2= array([[34, 5, 7, 4, 13), [8. 6, 11, 8,12] [9. 6, 5, 3, 17), [7, 9, 8, 2, 13]]) What is the output for the following commands for the above matrix X2 a). np.vsplit(X2, (1,3] (2M) b) np.hsplit(X2, [3] (2M) c). np.concatenate( [X2.X2], axis=1) (2M) d). np vstack([X2 X2]) (2M) e). np.hstack([X2,X2]) (2M)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
