Skip to content

Instantly share code, notes, and snippets.

@h-okay
Last active Jan 5, 2022
Embed
What would you like to do?
adding_rfm
rfm = create_rfm(df) # Creating RFM
rfm.rename(columns={'segment': 'rfm_segment'}, inplace=True)
rfm.index = rfm.index.astype('int64')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment