본문 바로가기
Seaborn

Example 03.flight data

by ram_ 2022. 11. 15.

03.Flight data

  • heatmap
  • pivot_table(index, columns, values)

flights = sns.load_dataset("flights")
flights.head()

flights.info()

# pivot
# index, columns, values
flights = flights.pivot(index = "month" , columns = "year", values = "passengers")
flights.head()

 

  • heatmap

annot

: heatmap 위 데이터 숫자 표현 

fmt

: d, f 등 정수 , 실수 표현 가능

 

 

 

 

 

 

 

 

 

 

 

 

 

  • cmap

: color 바꿀 수 있음

'Seaborn' 카테고리의 다른 글

Examples 05. Anscombe data  (0) 2022.11.16
Example 04.Iris data  (0) 2022.11.15
Example 02. seaborn tips data  (1) 2022.11.14
Example 01. seaborn basic  (0) 2022.11.14
seaborn 정리  (0) 2022.11.13