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

df.head()
# Print the first 5 rows
print(heart_disease_df.head())

df.info()
# Print out details
print(heart_disease_df.info())

df.value_counts()
# print the class balance
print(heart_disease_df['target'].value_counts(normalize=True))

Використовуйте df.isnull()
Використання
# check whether all values in a column are 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