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))

Użyj df.isnull()
Użycie
# check whether all values in a column are null
print(heart_disease_df['oldpeak'].isnull().all())
True
Wartości anomalne
Mogą zaburzać działanie modelu
Czasem mogą być przydatne:

Wizualizacje pokazują:
Inne typy wizualizacji:
df['age'].plot(kind='hist')
plt.xlabel('Age')
plt.ylabel('Frequency')
plt.show()

Zrozumienie danych
Wykrywanie wartości odstających
Formułowanie hipotez
Weryfikacja założeń
End-to-End Machine Learning