Last active
March 3, 2021 16:22
-
-
Save jiobu1/abca8f9854f6399f51420f557a517743 to your computer and use it in GitHub Desktop.
pd.qcut()
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
combined_csv['Crime Rating'] = pd.qcut( | |
combined_csv['Crime Rate (per 1000 residents)'], | |
q=3, | |
labels=['Low', 'Medium', 'High']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment