파이썬 데이터 분석# 범주형데이터 그래프 그리기 matplotlib과 seaborn 으로 시각화하기
대체로 파라미터가 유사하기 때문에 사용하기에 편리합니다. countplot df['음주여부'].value_counts().plot.bar() sns.countplot( x=None, y=None, hue=None, data=None, order=None, hue_order=None, orient=None, color=None,palette=None, saturation=0.75, dodge=True, ax=None, **kwargs, ) sns.countplot(x='음주여부',data=df) 파라미터 hue 추가해서 색상으로 구별해 줄 수 있습니다. sns.countplot(x='음주여부',data=df,hue='성별코드') barplot 수치형과 범주형 데이터 둘다 표현 가능 sns.barplot(d..