Discretization and Binning python code example Example: discertize dara python df['binned']=pd.cut(x=df['height'], bins=[0,25,50,100,200])