January 2020
Beginner to intermediate
372 pages
10h
English
Let's begin by importing the necessary libraries:
import pandas as pdimport matplotlib.pyplot as plt
from sklearn.datasets import load_bostonboston_dataset = load_boston()boston = pd.DataFrame(boston_dataset.data, columns=boston_dataset.feature_names)
boston.hist(bins=30, figsize=(12,12), density=True)plt.show()
The output of the preceding code is shown in the following screenshot:

Read now
Unlock full access