In the example below

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

b = a

b

a

>>> b[1] = -1 >>> print(b) [ 1 -1 3] >>> print(a) [ 1 -1 3]

np.copy()

>>> a = np.array([1,2,3]) >>> b = np.copy(a) >>> b[1] = -1 >>> print(b) [ 1 -1 3] >>> print(a) [1 2 3]