I have numeric data within Student marks and I would like to group them into 3 categories A, B and C.
df = pd.DataFrame([('Adel', 3.5),
('Betty', 2.75),
('Djamel', 2.10),
('Ramzi', 1.75),
('Alexa', 3.15)],
columns=('Name', 'GPA'))
I tried function pd.cut()
but it didn't lead to wanted result .