How it works...

Step 1 creates a boolean Series by determining which rows of data have STABBR equal to TX. This Series is passed to the indexing operator, which subsets the data. This process may be replicated by moving that same column to the index and simply using basic label-based index selection with .loc. Selection via the index is much faster than boolean selection.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.14.245