I want to create two arrays a and b, then create an array c which is the same as a but the first column is pulled from b. At the end there should be 3 different arrays.
Something like the following:
a = np.array([[1, 1]])
b = np.array([[0, 0]])
c = b
c[:, 0] = a[:, 0]
print(a, b, c)
Should outputs:
[[1 1]] [[0 0]] [[1 0]]
But I am getting:
[[1 1]] [[1 0]] [[1 0]]
For some reason, modifying c also modifies a.