79734397

Date: 2025-08-13 14:27:18
Score: 1
Natty:
Report link

The solution by BENY changes the data type of your column to strings.

I suggest you use instead: df.groupby("first_column").agg(list)

This will collect your values into a list without changing their type

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tomas Ruiz