iT邦幫忙

0

[Python] show distribution for each feature

number feature 看分布

def show_dist_map(df):
   plt.figure(figsize=(20,160),dpi=150)
   f = pd.melt(df, value_vars=quantitativecol)
   #[ col for col in df_train.columns if  df_train[col].dtype != object])
   g = sns.FacetGrid(f, col="variable",  col_wrap=3, sharex=False, sharey=False)
   g = g.map(sns.distplot, "value")

尚未有邦友留言

立即登入留言