A box plot, also called a whiskers chart, is a graph that uses simple dispersion and position indexes to describe the distribution of a sample. A box plot can be depicted either horizontally or vertically, by means of a rectangular partition divided by two segments. The rectangle (box) is delimited by the first quartile (the 25th percentile) and the third quartile (the 75th percentile), and is divided by the median (the 50th percentile).
Working with the Seaborn library
Getting ready
In this recipe, we will draw a box plot to show the distribution of the predictors contained in the Boston dataset, which we already used in the Estimating housing prices recipe in Chapter 1, The Realm of Supervised Learning.