記録として残していきます。
そのままコピーしてやればできます。
使用したデータ(csvファイル)がうまく掲載できなかったので、写真で貼っておきます。

statistics.py
import pandas as pd
import matplotlib.pyplot as plt
from pandas.plotting import scatter_matrix
statistics.py
data = pd.read_csv("row_data.csv")
data.describe()
statistics.py
plt.scatter(data['age'], data['expenses'])
plt.ylabel('expenses')
plt.xlabel('age')
plt.show()

statistics.py
plt.scatter(data['smoker'], data['expenses'])
plt.ylabel('expenses')
plt.xlabel('smoke')
plt.show()

statistics.py
plt.scatter(data['bmi'], data['expenses'])
plt.ylabel('expenses')
plt.xlabel('bmi')
plt.show()

statistics.py
plt.figure()
scatter_matrix(data)
plt.show()
