Working through the book, and I see this bit on scikit-learn:
housing["income_cat"] = pd.cut(housing["median_income"], bins=[0.,1.5,3.0,4.