Skip to content

Instantly share code, notes, and snippets.

@h-okay
Last active January 5, 2022 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h-okay/ed6ff06f0751bb4fba38467fd46c2190 to your computer and use it in GitHub Desktop.
Save h-okay/ed6ff06f0751bb4fba38467fd46c2190 to your computer and use it in GitHub Desktop.
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