Marketing Analytics, Customer Lifetime Value, K Means Clustering, Probabilistic Models, Data Science.
predict each customer's purchase over next t days def predict_purch(df, t): df["predict_purch_" + str(t)] = \ bgf.predict( t, df["frequency"], df["recency"], df["T"]) #Call function t_FC = [90, 180, 270, 360] _ = [predict_purch(df_rft, t) for t in t_FC] pd.options.display.float_format =