Skip to content

Instantly share code, notes, and snippets.

@meraldo-aliz
Created March 2, 2022 05:03
Show Gist options
  • Save meraldo-aliz/618449256e4dcaf4b1e600ac07117890 to your computer and use it in GitHub Desktop.
Save meraldo-aliz/618449256e4dcaf4b1e600ac07117890 to your computer and use it in GitHub Desktop.
lifetimes
import seaborn as sns
fig, ax = plt.subplots(figsize = (12, 7))
ax = sns.histplot(rfm_cal_holdout["value_10_pred"],
kde=False,
binwidth = 2)
ax.set_title(f'Customer value histogram')
ax.set_xlabel(r'Customer value estimate for 10 periods ($)')
ax.set_ylabel(r'Number of customers in each bin')
ax.set_xlim(-2,20)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment