
    zh                        d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ erd dlmZ  edd	      Z	 G d
 dee	         Z
y)    )annotations)TYPE_CHECKING)Any)Generic)TypeVar)SeriesSeriesTzSeries[Any])boundc                      e Zd ZddZddZy)SeriesStructNamespacec                    || _         y )N)_narwhals_series)selfseriess     T/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/narwhals/series_struct.py__init__zSeriesStructNamespace.__init__   s
     &    c                    | j                   j                  | j                   j                  j                  j	                  |            S )ae  Retrieve a Struct field as a new expression.

        Arguments:
            name: Name of the struct field to retrieve.

        Returns:
            A new Series.

        Examples:
            >>> import polars as pl
            >>> import narwhals as nw
            >>> s_native = pl.Series(
            ...     [
            ...         {"id": "0", "name": "john"},
            ...         {"id": "1", "name": "jane"},
            ...     ]
            ... )
            >>> s = nw.from_native(s_native, series_only=True)
            >>> s.struct.field("name").to_list()
            ['john', 'jane']
        )r   _with_compliant_compliant_seriesstructfield)r   names     r   r   zSeriesStructNamespace.field   s=    , $$44!!33::@@F
 	
r   N)r   r	   returnNone)r   strr   r	   )__name__
__module____qualname__r   r    r   r   r   r      s    '
r   r   N)
__future__r   typingr   r   r   r   narwhals.seriesr   r	   r   r    r   r   <module>r$      s7    "     &
)=
1
GG, 
r   