polars
polars copied to clipboard
Negative n argument for GroupBy.tail and GroupBy.head
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
+1 to this, it would be very helpful.