pandas: multiple conditions while indexing data frame – unexpected behavior
As you can see, the AND operator drops every row in which at least one value equals -1. On the other hand, the OR operator requires both values to be equal to -1 to drop them. That’s right. Remember that you’re writing the condition in terms of what you want to keep, not in terms of … Read more