L itddlmZddlmZmZmZddlmZmZerddl m Z eddZ Gdd ee Z y ) ) annotations) TYPE_CHECKINGGenericTypeVar)ExprKindExprNode)ExprExprTr )boundceZdZddZddZy)ExprCatNamespacec||_y)N)_expr)selfexprs W/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/narwhals/expr_cat.py__init__zExprCatNamespace.__init__s  ch|jjttjdS)uGet unique categories from column. Examples: >>> import polars as pl >>> import narwhals as nw >>> df_native = pl.DataFrame( ... {"fruits": ["apple", "mango", "mango"]}, ... schema={"fruits": pl.Categorical}, ... ) >>> df = nw.from_native(df_native) >>> df.select(nw.col("fruits").cat.get_categories()).to_native() shape: (2, 1) ┌────────┐ │ fruits │ │ --- │ │ str │ ╞════════╡ │ apple │ │ mango │ └────────┘ zcat.get_categories)r _append_noderr FILTRATION)rs rget_categorieszExprCatNamespace.get_categoriess,,zz&& X((*> ?  rN)rr returnNone)rr )__name__ __module__ __qualname__rrrrr r s  rr N) __future__rtypingrrrnarwhals._expression_parsingrr narwhals.exprr r r rrrr#s3"22;"v& wu~ r