data analysis (pandas, seaborn) - arcturus9/useful-link GitHub Wiki
import seaborn as sns
.. 기본그래프
sns.countplot(y='NameCol', data=df_name)
sns.countplot(x='NameCol', data=df_name)
.. 상위 갯수 많은 데이터 보기(갯수, %)
df['NameCol'].value_counts()
df['NameCol'].value_counts(normalize=True)
..기본통계 (mean, std, min, max, 25/50/75%)
df['NameCol'].describe()
..분포보기
sns.desplot(df['NameCol'].dropna())
..2개 plot
figure, (ax1, ax2) = plt. subplots(ncols=2)
figure.set_size_inches(12,5)
sns.displot(df['NameCol'].loc[df['NameCol']=='FindValue'].dropna(), norm_hist=False, color=sns.color_palette("Paired")[4], ax=ax1)
plt.title("Graph_Title")
..barplot , xtick ~ rotation
sns.barplot(x=df['col1'].unique(), y=df[col1].value_counts()/len(df) )
plt.xticks(rotation=30, ha='right')
plt.title('Title')
plt.ylabel('')