utils#
Functions
|
|
|
Compute the average lifetime value for a group of one or more customers, and apply a discount rate for net present value estimations. |
|
Assign customers to segments based on spending behavior derived from RFM scores. |
|
Summarize transaction data for use in CLV modeling or RFM segmentation. |
|
Summarize transaction data and split into training and tests datasets for CLV modeling. |
|
Convert vector arrays to xarray with a common dim (default "customer_id"). |