This is my data:
df = pd.DataFrame(myList, index=None, columns=[\'seconds\']) df[\'count\']= pd.cut(df[\'seconds\'], bins = 30) Categories (30, interval[floa