Home > other >  Np. Bincount (list1, list2)
Np. Bincount (list1, list2)

Time:10-12

# numpy. Bincount (x, weights=None, minlength=None)

X=[6]
I=[1,3,9,3,4,1]
F=np. Bincount (I, X)
Print (F)

Why the output is
[0. 7. 0. 6. 5. 0, 0, 0, 0. 3.]

CodePudding user response:

Already will, thanks for the support of friends
  • Related