Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
how to count positive elements numpy
chsh
Programming language:
TypeScript
2021-04-27 07:59:35
0
Q:
how to count positive elements numpy
antrep1234
Code:
TypeScript
2021-08-16 04:55:12
>>> np.sum(np.array(x) > 0, axis=0) array([3, 3, 3, 3, 3, 0])
1
Tags
element
how
count
New to Communities?
Join the community