Skip to content

Instantly share code, notes, and snippets.

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 evanfrisch/a02994a06f85e386e8cf3da0750791bd to your computer and use it in GitHub Desktop.
Save evanfrisch/a02994a06f85e386e8cf3da0750791bd to your computer and use it in GitHub Desktop.
# Create categorical feature user_reputation_quantile from user_reputation
df = dc.create_categorical_feature(dataframe=df, base_field="user_reputation", categorical_field="user_reputation_quantile", levels=5, increment=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment