You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a=np.random.random(shape)
inds= ...
axis= ...
# copy some values from a to bb=np.ones(a.shape) *np.nanvals=np.take(a, inds, axis=axis)
np.put(b, inds, vals, axis=axis)
# check that the copy workedassert_equal(vals, np.take(b, inds, axis=axis))