cleverly.datasets.win_back_then_ship#
- cleverly.datasets.win_back_then_ship(engaged: Any) Any[source]#
Return the win-back-then-ship offer: the discount if not engaged, else free shipping.
- Parameters:
- engagedarray_like
ofint Engagement this week,
1for engaged and0for not engaged.
- engagedarray_like
- Returns:
See also
win_backThe same rule with no offer for engaged customers.
OFFER_PLANSAll five plans of the offers tutorial.
Examples
>>> from cleverly.datasets import win_back_then_ship >>> win_back_then_ship([0, 1, 0]).tolist() ['discount', 'shipping', 'discount']