Last active
January 5, 2022 16:12
-
-
Save h-okay/ed6ff06f0751bb4fba38467fd46c2190 to your computer and use it in GitHub Desktop.
adding_rfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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