79243007

Date: 2024-12-02 05:18:11
Score: 1.5
Natty:
Report link

Better approach could be

df = df.lazy().group_by('ColA').agg('ColB').with_columns(pl.col("ColB").list.unique())
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Divya Raj K