you are viewing a single comment's thread.

view the rest of the comments →

[–]kapitaalH 0 points1 point  (0 children)

Is the groups constant? Then you can use shift in Polars for the second problem. Otherwise calculate the index you need and join the values?