Marketing Analytics, Customer Lifetime Value, K Means Clustering, Probabilistic Models, Data Science.
df_rftv["monetary_value"] df_rftv["error_rev"] = df_rftv["exp_avg_rev"] - df_rftv["avg_rev"] mape = mean_absolute_percentage_error(exp_avg_rev, df_rftv["monetary_value"]) print("MAPE of predicted revenues: {:.2%}".format(mape)) pd.options.display.float_format = '{:,.3f}'.format df_rftv.head() #