0

Count Value of Numpy Arrays

How to Count Value of one array that are also in another array def function18(): # count values of "students" are exist in "classPy" classpy= np.arange(100) students = np.array([5,20,50,200,301,7001]) x = # Write you code Here return x #Expected output: 3

28th Dec 2020, 1:15 PM
SAADAT ALI
2 Answers
+ 7
SAADAT ALI , not quite clear what you mean by "... Count Value...". Please rework your question. You should also supply us with a sample of the input and of the output array. Thanks!
28th Dec 2020, 3:33 PM
Lothar
Lothar - avatar
+ 1
Thanx i have edit it ihace 2 questions more after this i will share with you
28th Dec 2020, 3:52 PM
SAADAT ALI