If I do something like this:
import numpy as np
b=np.array([1,2,3,4,5])
c=np.array([0.6,0.7,0.8,0.9])
b[1:]=c
I get b =
array([1,0,0,0,0])
It works fine if c only contains integers. But I have fractions. I wish to get something like this:
array([1,0.6,0.7,0.8,0.9])
How can I achieve that?