How to do a monthly or yearly analysis in RFM? #1400
Replies: 4 comments
-
Hey @franzoni315, Use the rfm_summary(data,
customer_id_col,
datetime_col,
time_unit="W", # "M" & "Y" are unsupported TimeDelta units in pandas,
time_scaler=4.33, # so Weeks must be rescaled into Months
) |
Beta Was this translation helpful? Give feedback.
-
It worked, thanks very much, @ColtAllen ! |
Beta Was this translation helpful? Give feedback.
-
@ColtAllen I actually discovered that this parameter is not available for the
but I am not sure if this is correct, and also it takes too long. |
Beta Was this translation helpful? Give feedback.
-
@franzoni315 sorry for not seeing this sooner; I get a lot of emails related to
It's not used in this function because
Set Also, is this model only being used for cross-sells and upsells? If you're trying to predict if a customer will renew a subscription, However, for large customer populations |
Beta Was this translation helpful? Give feedback.
-
In my company we sell yearly and monthly subscriptions with possibilities of cross-sell and upsell. How can I use the
rfm_summary
with monthly or yearly periods? When I try to settime_unit="M"
, I get this error:ValueError: Unit M is not supported. Only unambiguous timedelta values durations are supported. Allowed units are 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns'
Beta Was this translation helpful? Give feedback.
All reactions