Improving Your Target Analysis with pandas qcut Function

amount_quintiles = pd.qcut(df.amount, q=5)

Sign up for more tips