Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created December 22, 2021 03:31
Show Gist options
  • Save quantra-go-algo/bb93428bf25b6860ef458482c5d3b22a to your computer and use it in GitHub Desktop.
Save quantra-go-algo/bb93428bf25b6860ef458482c5d3b22a to your computer and use it in GitHub Desktop.
data['bin'] = pd.cut(data['value'], bins=[100,250,400,500], labels=["Lowest", "Mid", "High"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment