Skip to content

Instantly share code, notes, and snippets.

@karamanbk
Last active May 3, 2019 20:30
Show Gist options
  • Save karamanbk/092fcd03b24cf7279e132d60f8718af3 to your computer and use it in GitHub Desktop.
Save karamanbk/092fcd03b24cf7279e132d60f8718af3 to your computer and use it in GitHub Desktop.
#calculate overall score and use mean() to see details
tx_user['OverallScore'] = tx_user['RecencyCluster'] + tx_user['FrequencyCluster'] + tx_user['RevenueCluster']
tx_user.groupby('OverallScore')['Recency','Frequency','Revenue'].mean()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment