Skip to content

Instantly share code, notes, and snippets.

@h-okay
Last active January 5, 2022 16:12
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