Created
July 3, 2017 15:25
-
-
Save mzaradzki/bead118e4bfdc93d248b40416fb7dc00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
nbQs = 4 # quartiles | |
dfX['construction_year_quantile'] = pd.qcut(dfX['construction_year'], nbQs, labels=False)/(nbQs-1.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment