text_plain_output_1.png
import numpy as np

a = np.array([[1, 2, 3], [4, 5, 6]])
a

np.ravel(a)

a = np.array([[1, 2, 3], [5, 6, 7]])
a

a.T

np.reshape(a, (3, 2))

b = np.arange(18)
b

c = np.reshape(b, (2, 3, 3))
c

c.ndim