text_plain_output_1.png
import numpy as np

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

b = np.array([1, 2, 3])
b

d = np.array([[1], [0], [1]])
d

e = np.array([1, 2, 3])
e

f = e[:, np.newaxis]
f