cleverly.datasets.win_back#
- cleverly.datasets.win_back(engaged: Any) Any[source]#
Return the win-back offer: the discount for a customer who is not engaged, else nothing.
- Parameters:
- engagedarray_like
ofint Engagement this week,
1for engaged and0for not engaged.
- engagedarray_like
- Returns:
See also
win_back_then_shipThe same rule with free shipping for engaged customers.
OFFER_PLANSAll five plans of the offers tutorial.
Examples
>>> from cleverly.datasets import win_back >>> win_back([0, 1, 0]).tolist() ['discount', 'none', 'discount']