일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 시각화
- MySQL
- Visualization
- 한빛미디어서평단
- MATLAB
- Blog
- tensorflow
- 딥러닝
- Google Analytics
- Tistory
- 서평
- Linux
- 티스토리
- 리눅스
- 서평단
- 한빛미디어
- matplotlib
- 텐서플로
- 월간결산
- SQL
- 독후감
- Ga
- 파이썬
- python visualization
- 통계학
- 매틀랩
- Pandas
- 파이썬 시각화
- Python
- 블로그
- Today
- Total
목록violinplot (2)
pbj0812의 코딩 일기

0. 목표 - interpolate 로 violinplot 구현하기 1. 실습 1) library 호출 import seaborn as sns import matplotlib.pyplot as plt import pandas as pd import matplotlib.patches as patches from scipy.interpolate import interp1d import numpy as np 2) 데이터 로드 tips = sns.load_dataset("tips") 3) 구간별 그룹화 bins = list(range(-5, 65, 5)) tips['level'] = pd.cut(tips['total_bill'], bins, labels=bins[:-1]) df = tips[['total_bil..

0. 목표 - add_patch 를 이용한 violinplot 구현하기 1. seaborn 의 violinplot import seaborn as sns tips = sns.load_dataset("tips") sns.violinplot(y="total_bill", data=tips) 2. 구현하기 1) library 호출 import matplotlib.pyplot as plt import pandas as pd import matplotlib.patches as patches 2) 구간 확보 - [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55] bins = list(range(0, 60, 5)) 3) 구간 적용 tips['level'] = pd.cut(tips['to..