cut() and qcut() (Pandas)

pd.cut() bins continuous numbers into discrete intervals you define by edges.