Boolean selection can also be used to remove rows from a DataFrame. The result of a Boolean selection will return a copy of rows where the expression is True. To drop rows, simply construct an expression that returns False for the rows that are to be dropped and then apply the expression to the data frame.
The following demonstrates dropping rows where Price is greater than 300. First, construct the expression.
From this result, we now know that there are 10 rows where the price is greater than 300. To get a data frame with those rows removed, select the complement of the selection.