
    h                        S SK Jr  S SKJr  S SKJr  S SKJr  S SKJr  \(       a  S SKJr  \" SSS	9r	 " S
 S\\	   5      r
g)    )annotations)TYPE_CHECKING)Any)Generic)TypeVar)SeriesSeriesTzSeries[Any])boundc                  (    \ rS rSrSS jrSS jrSrg)SeriesStructNamespace   c                    Xl         g )N_narwhals_series)selfseriess     H/var/www/html/env/lib/python3.13/site-packages/narwhals/series_struct.py__init__SeriesStructNamespace.__init__   s     &    c                    U R                   R                  U R                   R                  R                  R	                  U5      5      $ )a  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   SeriesStructNamespace.field   s=    , $$44!!33::@@F
 	
r   r   N)r   r	   returnNone)r   strr   r	   )__name__
__module____qualname____firstlineno__r   r   __static_attributes__ 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   