Machine Learning de extremo a extremo
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))

Usa df.isnull()
Uso
# check whether all values in a column are null
print(heart_disease_df['oldpeak'].isnull().all())
True
Valores anómalos
Pueden sesgar el modelo
A veces útiles:

Las visualizaciones muestran:
Otros tipos:
df['age'].plot(kind='hist')
plt.xlabel('Age')
plt.ylabel('Frequency')
plt.show()

Entender los datos
Detectar atípicos
Formular hipótesis
Comprobar supuestos
Machine Learning de extremo a extremo