image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

import seaborn as sns

concat_california_array = np.concatenate((california.data, np.reshape(california.target, (california.target.shape[0], 1))), axis=1)
california_df = pd.DataFrame(concat_california_array, columns=california.feature_names + ['price'])

plt.colorbar()

california_df.isnull().sum()

numeric_columns = california_df.select_dtypes(include=['float64', 'int']).columns
len_numeric_columns = len(numeric_columns)
fig = plt.figure(figsize=(15, 10))
n_cols = 3
n_plot_rows = len_numeric_columns // n_cols
n_plot_rows
for i, column in enumerate(numeric_columns):
    ax = fig.add_subplot(n_plot_rows, n_cols, i + 1)
    sns.boxplot(y=california_df[column], orient='h', ax=ax)
fig.tight_layout()