Data/Data Visualization (3) 썸네일형 리스트형 [Seaborn] seaborn line plotting tutorial In [2]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") relplot 기본설정은 scatter, 라인형식으로 바꾸려면 kind변수를 line으로 설정¶ In [3]: df = pd.DataFrame(dict(time=np.arange(500), value = np.random.randn(500).cumsum())) g = sns.relplot(x='time', y='value', kind='line', data=df) g.fig.autofmt_xdate() 일반적으로 x축을기반으로 순차적으로 라인그래프가 그려지는데 이는 sort 변수를.. [Seaborn] seaborn scatter tutorial 참고: https://seaborn.pydata.org/tutorial/relational.html Visualizing statistical relationships — seaborn 0.9.0 documentation Scatter plots are highly effective, but there is no universally optimal type of visualiation. Instead, the visual representation should be adapted for the specifics of the dataset and to the question you are trying to answer with the plot. With some datase seaborn.pydata.or.. [Seaborn] seaborn 라이브러리 연습 In [12]: import seaborn as sns import pandas as pd import numpy as np In [2]: sns.__version__ Out[2]: '0.9.0' In [3]: sns.set() sns.set_style('whitegrid') sns.set_color_codes() In [4]: current_palette = sns.color_palette() sns.palplot(current_palette) In [5]: tips = sns.load_dataset("tips") In [17]: tips.head(10) Out[17]: total_bill tip sex smoker day time size 0 16.99 1.01 Female No Sun Dinner .. 이전 1 다음