Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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