Add a new pointer to the end a[:,-1]so that it has a shape (2,1). Adding with bthen broadcast along the column (second axis) instead of rows (default).
In [47]: b + a[:,-1][:, np.newaxis]
Out[47]:
array([[ 7, 8],
[11, 12]])
a[:,-1] (2,). b (2,2). . , NumPy a[:,-1] + b, a[:,-1] (1,2) (2,2), 1 ( ) .
, a[:,-1][:, np.newaxis] (2,1). (2,2) 1 ( ), .