
    h                    h    S SK Jr  S SKJrJrJr  \(       a  S SKJr  \" SSS9r " S S\\   5      r	g	)
    )annotations)TYPE_CHECKINGGenericTypeVar)ExprExprTr   )boundc                  (    \ rS rSrSS jrSS jrSrg)ExprCatNamespace   c                    Xl         g N_expr)selfexprs     dC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\narwhals/expr_cat.py__init__ExprCatNamespace.__init__   s    
    c                B   ^  T R                   R                  U 4S j5      $ )u^  Get unique categories from column.

Returns:
    A new expression.

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  │
    └────────┘
c                j   > TR                   R                  U 5      R                  R                  5       $ r   )r   _to_compliant_exprcatget_categories)plxr   s    r   <lambda>1ExprCatNamespace.get_categories.<locals>.<lambda>)   s#    

55c:>>MMOr   )r   _with_elementwise)r   s   `r   r   ExprCatNamespace.get_categories   s    2 zz++O
 	
r   r   N)r   r   returnNone)r!   r   )__name__
__module____qualname____firstlineno__r   r   __static_attributes__ r   r   r   r      s    
r   r   N)

__future__r   typingr   r   r   narwhals.exprr   r   r   r(   r   r   <module>r,      s0    " 2 2"v&
wu~ 
r   