728x90 바이올린플롯1 [Visualization][Basic] Violin Plot(바이올린 플롯) Violin Plot은 데이터의 분포를 파악하고 싶을 때 사용하면 유용하다. 그래프는 Python의 내장 데이터인 excerise 데이터를 이용하고, 운동의 종류(kind)에 따른 심박수(pulse)의 분포를 파악해 볼 것이다. df = sns.load_dataset('exercise') df Seaborn 모듈을 활용한 Violin Plot import seaborn as sns sns.violinplot(df.kind, df.pulse) sns.violinplot(df.kind, df.pulse, palette = 'cool') palette 파라미터를 이용해서 분포의 색상을 변경할 수 있다. sns.violinplot('kind', 'pulse', hue = 'diet', data = df, pal.. 2021. 7. 14. 이전 1 다음 반응형