본문 바로가기
데이터 분석/Seaborn 튜토리얼 필사

[Seaborn 튜토리얼 필사] 1-1. An introduction to seaborn

by 이준언 2023. 11. 17.

<An introduction to seaborn>

  • Seaborn

: a library for making statistical graphics in Python.

  • Matplotlib 기반, Pandas 데이터 구조와 통합
  • 라이브러리 호출
# Import seaborn
import seaborn as sns
  • 테마 설정
# Apply the default theme
sns.set_theme()
  • Dataset 불러오기
# Load an example dataset
tips= sns.load_dataset("tips")
pandas.read_csv()
  • 시각화
# Create a visualization
sns.relplot(
    data=tips,
    x="total_bill", y="tip", col="time",
    hue="smoker", style="smoker", size="size",
)