[Numpy-discussion] Array accumulation in numpy

Alan G Isaac alan.isaac@gmail....
Tue Feb 19 09:17:32 CST 2013


x=[1,2,3,4,5,6]
ind=[1,3,9,3,4,1]
f=np.zeros(10)
np.bincount(ind,x)

hth,
Alan Isaac



More information about the NumPy-Discussion mailing list