polars icon indicating copy to clipboard operation
polars copied to clipboard

Negative n argument for GroupBy.tail and GroupBy.head

Open alkment opened this issue 1 year ago • 1 comments

Description

DataFrame.tail and DataFrame.head support negative integers for the n argument. It would be great if the GroupBy.tail and head methods supported the same behavior. Passing a negative value for n currently results in an error.

OverflowError: can't convert negative int to unsigned

alkment avatar Feb 12 '24 22:02 alkment

+1 to this, it would be very helpful.

thomasb-gr avatar May 15 '24 12:05 thomasb-gr