I have the following numpy arrays:
X = np.array([[1,2,3], [4,5,6], [7,8,9]])
y = np.array([[0.1,0.2,0.3], [0.4,0.5,0.743], [0.834,0.96,0.1]])
I was trying to copy some columns in y into X using the following:
X[:, [0,1]] = y[:, [0,1]]
However after I print X I get:
In[20]: X
Out[20]:
array([[0, 0, 3],
[0, 0, 6],
[0, 0, 9]])
As you can see, as if the floats are rounded. I want the floats as is without rounding, how can I fix that ?