본문 바로가기

명사 美 비격식 (무리 중에서) 아주 뛰어난[눈에 띄는] 사람[것]

인공지능/PYTHON

seaborn 파이썬 데이터 시각화 라이브러리 (feat.matplotlib)

seaborn

파이썬 데이터 시각화 라이브러리

matplotlib를 더 예쁘고 쉽게 사용할 수 있다. 

https://seaborn.pydata.org/

 

seaborn: statistical data visualization — seaborn 0.13.2 documentation

seaborn: statistical data visualization

seaborn.pydata.org

 

 

 

보통 데이터 분석 흐름은 numpy - pandas - matplotlib - seaborn으로 많이 간다. 

특히 pandas dataframe과 궁합이 매우 좋다 .

matplotlib는 그래프를 직접 꾸며야 하는 경우가 많고 투박하나 seaborn 은 예쁘다.

통계 데이터 시각화 목적으로 만들어졌으며 평균, 분포, 상관관계, 회귀선, 범주비교 같은것들을 매우 쉽게그리고 컬럼 기반으로 바로그린다.

https://matplotlib.org/stable/gallery/index

https://matplotlib.org/

 

Matplotlib — Visualization with Python

seaborn Cartopy DNA Features Viewer plotnine WCS Axes seaborn seaborn is a high level interface for drawing statistical graphics with Matplotlib. It aims to make visualization a central part of exploring and understanding complex datasets. statistical data

matplotlib.org

 

 

 

그래프 종류에는 scatterplot, lineplot, barplot, histplot, bosplot, heatmap, 가 있다. 

https://seaborn.pydata.org/examples/index.html

 

Example gallery — seaborn 0.13.2 documentation

 

seaborn.pydata.org

 

 

matplotlib가 저수준의 범용그래프이라면 seaborn은 고수준 통계그래프 특화 라 볼 수 있다. 

seaborn은 연습용 데이터도 제공하는데 tips, titanic, iris, flights등 있다.