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/a18557211609ae0fc5b4baa6d801f82c to your computer and use it in GitHub Desktop.
Save h-okay/a18557211609ae0fc5b4baa6d801f82c to your computer and use it in GitHub Desktop.
segments
final["cltv_segment"] = pd.qcut(final["6m_scaled_clv"], 4, labels=["D", "C", "B", "A"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment