Loading tutorials
.loc, .iloc, masks, and query have a clear model to build on.3 min readpd, and can build a DataFrame from a dictionary. The index and column labels from the previous chapter are used here without re-explaining them.2 min reada to e.3 min read.loc.2 min read.loc basics from the previous chapter. It also assumes you know how Python slices work.2 min read.loc syntax. It uses the df of five cities from the earlier chapters.2 min readdf DataFrame of five cities from the earlier chapters. Here you combine several conditions into one filter.2 min read&, |, and ~. Here you will replace long chains of comparisons with three helpers that return masks directly.2 min read&, |, and ~. Here you will apply those skills to rows where a value is missing.3 min read&, |, and ~. It uses the same five-city DataFrame as the earlier chapters, rebuilt here so the code runs on its own.2 min read.loc expressions. Earlier chapters filtered rows. Here you filter columns, either by what they are called or by the kind of data they hold.2 min read.loc with labels, and build boolean masks. It uses the df of five cities from earlier chapters.2 min read.loc with labels. If .loc slicing is unfamiliar, review it first.2 min read.loc and .iloc from earlier in the tutorial. It also assumes you can build a DataFrame from a dictionary and that import pandas as pd is already in place.2 min read