Created
March 2, 2022 05:03
-
-
Save meraldo-aliz/618449256e4dcaf4b1e600ac07117890 to your computer and use it in GitHub Desktop.
lifetimes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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