You are viewing a single comment's thread. Return to all comments →
Alternatively:
for x in (zip(*((x > 0, x < 0, x == 0) for x in arr))): print('{0:.6f}'.format(sum(x) / len(arr)))
Seems like cookies are disabled on this browser, please enable them to open this website
Plus Minus
You are viewing a single comment's thread. Return to all comments →
Alternatively: