I wrote following code, but return all NaNs in the new column.
bins = [0, 1, 2, 5] cat = [\'zero\', \'one\', \'two and more\'] df[\'group\'] = pd.cut(df[\'count\'