class_docstr: Utility class for performing a group by operation over a lazy DataFrame.
  
  Generated by calling `df.lazy().group_by(...)`.
class_docstr_tok: ["Utility","class","for","performing","a","group","by","operation","over","a","lazy","DataFrame",".","Generated","by","calling","`","df.lazy","(",")",".group_by","(","...",")","`","."]
docstr: Get the last `n` rows of each group.
  
  Parameters
  ----------
  n
      Number of rows to return.
  
  Examples
  --------
  >>> df = pl.DataFrame(
  ...     {
  ...         "letters": ["c", "c", "a", "c", "a", "b"],
  ...         "nrs": [1, 2, 3, 4, 5, 6],
  ...     }
  ... )
  >>> df
  shape: (6, 2)
  ┌─────────┬─────┐
  │ letters ┆ nrs │
  │ ---     ┆ --- │
  │ str     ┆ i64 │
  ╞═════════╪═════╡
  │ c       ┆ 1   │
  │ c       ┆ 2   │
  │ a       ┆ 3   │
  │ c       ┆ 4   │
  │ a       ┆ 5   │
  │ b       ┆ 6   │
  └─────────┴─────┘
  >>> df.group_by("letters").tail(2).sort("letters")
   shape: (5, 2)
  ┌─────────┬─────┐
  │ letters ┆ nrs │
  │ ---     ┆ --- │
  │ str     ┆ i64 │
  ╞═════════╪═════╡
  │ a       ┆ 3   │
  │ a       ┆ 5   │
  │ b       ┆ 6   │
  │ c       ┆ 2   │
  │ c       ┆ 4   │
  └─────────┴─────┘
docstr_tok: ["Get","the","last","`","n","`","rows","of","each","group",".","Parameters","--","--","--","--","--","n","Number","of","rows","to","return",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","...","{","...","``","letters","''",":","[","``","c","''",",","``","c","''",",","``","a","''",",","``","c","''",",","``","a","''",",","``","b","''","]",",","...","``","nrs","''",":","[","1",",","2",",","3",",","4",",","5",",","6","]",",","...","}","...",")",">",">",">","df","shape",":","(","6",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","letters","\u2506","nrs","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","i64","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","c","\u2506","1","\u2502","\u2502","c","\u2506","2","\u2502","\u2502","a","\u2506","3","\u2502","\u2502","c","\u2506","4","\u2502","\u2502","a","\u2506","5","\u2502","\u2502","b","\u2506","6","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2518",">",">",">","df.group_by","(","``","letters","''",")",".tail","(","2",")",".sort","(","``","letters","''",")","shape",":","(","5",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","letters","\u2506","nrs","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","i64","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","a","\u2506","3","\u2502","\u2502","a","\u2506","5","\u2502","\u2502","b","\u2506","6","\u2502","\u2502","c","\u2506","2","\u2502","\u2502","c","\u2506","4","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def tail(self, n: int = 5) -> LazyFrame:
      """
      Get the last `n` rows of each group.
  
      Parameters
      ----------
      n
          Number of rows to return.
  
      Examples
      --------
      >>> df = pl.DataFrame(
      ...     {
      ...         "letters": ["c", "c", "a", "c", "a", "b"],
      ...         "nrs": [1, 2, 3, 4, 5, 6],
      ...     }
      ... )
      >>> df
      shape: (6, 2)
      ┌─────────┬─────┐
      │ letters ┆ nrs │
      │ ---     ┆ --- │
      │ str     ┆ i64 │
      ╞═════════╪═════╡
      │ c       ┆ 1   │
      │ c       ┆ 2   │
      │ a       ┆ 3   │
      │ c       ┆ 4   │
      │ a       ┆ 5   │
      │ b       ┆ 6   │
      └─────────┴─────┘
      >>> df.group_by("letters").tail(2).sort("letters")
       shape: (5, 2)
      ┌─────────┬─────┐
      │ letters ┆ nrs │
      │ ---     ┆ --- │
      │ str     ┆ i64 │
      ╞═════════╪═════╡
      │ a       ┆ 3   │
      │ a       ┆ 5   │
      │ b       ┆ 6   │
      │ c       ┆ 2   │
      │ c       ┆ 4   │
      └─────────┴─────┘
  
      """
      return wrap_ldf(self.lgb.tail(n))
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Callable, Iterable
  from polars import functions
  from polars.utils._parse_expr_input import parse_as_list_of_expressions
  from polars.utils._wrap import wrap_ldf
  from polars.utils.deprecation import deprecate_renamed_function
label_desc: Use image node_id 5 for calling the LazyGroupBy obj's underlying member method code with example usage: obj.tail(n) and returns: wrap_ldf