.
'{:.1%}'.format(x))) j.ax_joint.set_xlabel('Predicted') j.ax_joint.set_ylabel('Actuals') def plot_ic_distribution(df, ax=None): if ax is not None: sns.distplot(df.ic, ax=ax) else: ax = sns.distplot(df.ic) mean, median = df.ic.mean(), df.ic.median() ax.axvline(0, lw=1, ls='--', c='k') ax.text(x=.05,