I came across this strange behavior when dealing with numpy arrays
x = np.array([[0,3,6],
[1,5,10]])
print(x[1]/3)
x[1]=x[1]/3
print(x[1])
Output is as shown below:
[0.33333333 1.66666667 3.33333333]
[0 1 3]
Why is it different? And how can I assign [0.33333333 1.66666667 3.33333333]
to x[1]
without rounding off the values?