End-to-End Machine Learning
Joshua Stapleton
Machine Learning Engineer

df.head()
# 最初の5行を表示
print(heart_disease_df.head())

df.info()
# 詳細を表示
print(heart_disease_df.info())

df.value_counts()
# クラスバランスを表示
print(heart_disease_df['target'].value_counts(normalize=True))

df.isnull()を使用
使用例
# 列の全値がNullか確認
print(heart_disease_df['oldpeak'].isnull().all())
True
異常値
モデル性能を歪める
役立つ場合も

可視化で分かること:
他の可視化:
df['age'].plot(kind='hist')
plt.xlabel('Age')
plt.ylabel('Frequency')
plt.show()

データを理解する
外れ値を検出
仮説の立案
前提の検証
End-to-End Machine Learning