Below is my demo dataframe:
df=pd.DataFrame({"a": np.random.randint(1, high=50, size=50)}) bins =np.arange(0,df[\'a\'].max()+1,5).astype(\'int\') #