Chapter 4, Selecting Subsets of Data, covered a wide range of recipes on selecting different subsets of data through the .iloc and .loc indexers. Both these indexers select rows and columns simultaneously by either integer location or label. Both these indexers can also do data selection through boolean indexing, even though booleans are not integers and not labels.
Selecting with booleans, integer location, and labels
Getting ready
In this recipe, we will filter both rows and columns with boolean indexing for both the .iloc and .loc indexers.
How to do it...
- Read in...