a=np.random.randint(15,size=[2,5])
b=np.random.random([2,5])
b[0,2]=np.nan
a[0,2]=np.nan
I can easily replace any indices of b with nan. But if the same command I am trying to repeat for a, it's showing error. Why? How do I resolve that? Why is this happen?
b=np.random.random([2,5])
b[0,2]=np.nan
a[0,2]=np.nan
I can easily replace any indices of b with nan. But if the same command I am trying to repeat for a, it's showing error. Why? How do I resolve that? Why is this happen?