Question: can u explain this pls : array_2d = np . array ( [ [1, 2, 3], [5, 6, 7]]) print ( a=, array_2d) #reshape matrix
can u explain this pls
: array_2d = np . array ( [ [1, 2, 3], [5, 6, 7]]) print (" a=", array_2d) #reshape matrix b = array_2d . reshape (1, 6) print (" \ b =", b) c = array_2d . reshape (6, 1) print("\ c =", c) d = array_2d . reshape(3, 2) print ("\ d =", d)Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
