text_plain_output_1.png
import numpy as np

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

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

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

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

b = np.tile(a, (2, 1))
b

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

b = a[0:3, np.newaxis]
b