
[개인 프로젝트] 데이터 시각화 및 분석
·
Python/데이터 시각화
💻목표 : 이탈 원인 파악해보기 📝원본 데이터 출처 : https://www.kaggle.com/competitions/playground-series-s4e1/overview 1. 우선 고객의 성별 및 연령별 데이터 확인 f, ax = plt.subplots(1, 2, figsize=(19, 8)) # 성별에 따른 파이 차트 gender_counts = train_data['Gender'].value_counts() # 파이 차트 그리기 ax[0].pie(gender_counts, labels=gender_counts.index, autopct='%1.1f%%', startangle=90, colors=['skyblue', 'lightcoral']) ax[0].set_title('연령별 분포') # 연..