Advanced Techniques in pandas
Combine Your Knowledge
If you remember, several chapters ago you were provided with information on how to write several conditions simultaneously. With the
.isin() statement, you can use the same rules. For instance, an example from the previous chapter could look like this:
The output in these two cases will be the same.