
    O3j                    t    d dl mZ d dlmZmZmZ d dlmZmZ erd dl	m
Z
  edd      Z G d d	ee         Zy
)    )annotations)TYPE_CHECKINGGenericTypeVar)ExprKindExprNode)ExprExprTr	   )boundc                      e Zd ZddZddZy)ExprCatNamespacec                    || _         y )N)_expr)selfexprs     >/DATA/.local/lib/python3.12/site-packages/narwhals/expr_cat.py__init__zExprCatNamespace.__init__   s	    
    c                h    | j                   j                  t        t        j                  d            S )a  Get unique categories from column.

        Examples:
            >>> import pandas as pd
            >>> import narwhals as nw
            >>> df_native = pd.DataFrame(
            ...     {"fruits": ["apple", "mango", "mango"]}, dtype="category"
            ... )
            >>> df = nw.from_native(df_native)
            >>> df.select(nw.col("fruits").cat.get_categories()).to_native()
              fruits
            0  apple
            1  mango
        zcat.get_categories)r   _append_noder   r   
FILTRATION)r   s    r   get_categorieszExprCatNamespace.get_categories   s,     zz&&X((*>?
 	
r   N)r   r
   returnNone)r   r
   )__name__
__module____qualname__r   r    r   r   r   r      s    
r   r   N)
__future__r   typingr   r   r   narwhals._expression_parsingr   r   narwhals.exprr	   r
   r   r   r   r   <module>r#      s3    " 2 2 ;"v&
wu~ 
r   