Created
December 5, 2020 17:41
-
-
Save Kamaldeep0077/74ce4df300205e9d44b3f08031470525 to your computer and use it in GitHub Desktop.
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
#name of groups | |
groups = ['Low', 'Med', 'High', 'Exp'] | |
data['Item_MRP_Bin_qcut'] = pd.qcut(data['Item_MRP'], q=4, labels=groups) | |
data[['Item_MRP', 'Item_MRP_Bin_qcut']].head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment