Logical operators for Boolean indexing in Pandas

Boolean Indexing - passing a series of list that satisfy the specified boolean condition.

The operator &, | instead of AND, OR, are the only ones that work with boolean indexing here because it's an element-wise (like bit-wise operators) operator that is needed for the result of a series of data.

This entry was posted in Technical. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.