seaborn

Python/Study

[Python / Study] Seaborn Barplot Errorbar Parameter

1. 코드 fig, ax = plt.subplots(nrows = 1, ncols = 2, figsize = (16, 5)) ax0 = sns.barplot(x = 'day', # x축 y = 'total_bill', # y축 data = tips, # 데이터 errorbar = None, # ? color = 'lightgray', # 색 alpha = 0.85, # 투명도 ax = ax[0] ) plt.show() x축은 tips 데이터의 day y축은 tips 데이터의 total_bill 데이터는 tips errorbar는 None color는 lightgray aplha = 0.85 ax = ax[0] 2. Seaborn 홈페이지 errorbar errorbar : string, (string, ..

Python/Study

[Python / Study] Seaborn tips 내장 데이터를 이용해 시각화하기

1. 라이브러리 설치 및 데이터 불러오기 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd tips = sns.load_dataset('tips') tips.head() pandas, matplotlib.pyplot과 seaborn을 import 합니다. 그 다음 load.dateset() 함수로 tips 데이터를 불러와 tips 변수에 저장합니다. 출력 tips.head()로 데이터를 5줄만 불러왔습니다. 컬럼 설명 - total_bill : 총 계산 요금 (달러) - tip : 팁 (달러) - sex : 성별 - smoker : 흡연 여부 - day : 요일 - time : 식사 시간 - size : 식사 인원 2. 데..

Sukyung Jang
'seaborn' 태그의 글 목록