i am using numpy :
In [83]: names = np.array(['Bob', 'Joe', 'Will', 'Bob', 'Will', 'Joe', 'Joe'])
In [93]: mask = (names == 'Bob') | (names == 'Will')
why can not I use "or" instead of "|"?
why does it give me error when I remove the pretenses in In[93] ?
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Thanks in advance.