import seaborn as sns
# df 내 months별 추이를 보고싶음
# cd별 month 에 따른 qty 추이
g = sns.lineplot(x="months", y="qty", hue="cd", data=df)
g.legend(loc='upper right', bbox_to_anchor=(1.01,1)) # 범례 위치 지정
'언어 꿀Tip > Python 꿀tip!' 카테고리의 다른 글
07_01_46. 2x2 형태로 여러 line 중첩해서 그래프 그리기 (0) | 2021.06.08 |
---|---|
07_01_45. groupby 컬럼명 level 합치기 (0) | 2021.06.04 |
07_07_43. chi-square test (카이제곱 검정) (0) | 2021.06.01 |
07_01_41. 그래프 범례 삽입 (graph legend), 여러 line 겹쳐 그리기 (0) | 2021.05.28 |
07_01_40. matplotlib plot 크기 조정 (plot size) (0) | 2021.05.27 |