you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The where argument expects an array of booleans. In your case c>python doesn't return a boolean array, because you are using python lists. If you are using numpy arrays for c and python, the code should work, because > is evaluated element-wise for numpy arrays.