daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. df_corr = df[df['advertiser_name'].isin(ad_list)].groupby('advertiser_name')[['clicks_ratio']].corr(df['view_unique_ratio'])
  2. ax = sns.heatmap(df_corr, cmap='YlGn', annot=True, vmin=-0.4, vmax=0.4)
  3. ax.set_yticklabels(list(df_corr.index),rotation=0)
  4. ax.axes.get_xaxis().set_visible(False)
  5. ax.set_ylabel("")
  6.             ax.set_title("Corr. between click-ratio and impression-ratio", weight='bold', size=12)
  7. fig = ax.get_figure()
  8. fig.tight_layout()
  9. fig.savefig("cor1.png",dpi=300)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top