엔드 투 엔드 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() 사용
사용 예
# 열의 모든 값이 null인지 확인
print(heart_disease_df['oldpeak'].isnull().all())
True
이상값
모델 성능 왜곡 가능
때로 유용함:

시각화로 확인:
기타 시각화:
df['age'].plot(kind='hist')
plt.xlabel('Age')
plt.ylabel('Frequency')
plt.show()

데이터 이해
이상값 탐지
가설 수립
가정 검토
엔드 투 엔드 Machine Learning