polars icon indicating copy to clipboard operation
polars copied to clipboard

Support simple aggregations on list columns

Open DavideCanton opened this issue 1 year ago • 2 comments

Problem description

Sorry if this is a duplicate, but I did not find anything related by searching in the issue tracker.

Is there any plan regarding supporting simple aggregations (like min or max) on list columns?

Something like a lexicographic order, such that:

  • simple list are ordered by comparing value by value, stopping at the shortest one (for example [1,2] < [1,3], [1,2] < [1,2,3] and so on).
  • nested list are ordered recursively (for example [[1,2],[1,3]] < [[1,3]], [[1,2]] < [[1,2],[1,3]] and so on`.

AFAIK, polars by now returns always null in these cases.

DavideCanton avatar Jul 13 '23 16:07 DavideCanton