
    h"j                        S SK Jr  S SKJr  S SKJrJr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KJrJr  S S	KJr  S S
KJrJrJrJr  \ " S S5      5       rg)    )annotations)Sequence)TYPE_CHECKINGAnyCallable)	functions)wrap_s)expr_dispatch)
Collection)ExprSeries)PySeries)IntoExprIntoExprColumnListToStructWidthStrategyNullBehaviorc                     \ rS rSrSrSrS:S jrS;S jrS;S jrS;S jr	S;S jr
 S<S	S
S
S	S.           S=S jjjrS;S jrS;S jrS;S jrS;S jrS;S jrS>S?S jjrS>S?S jjrS
S
SS.       S@S jjrS;S jrS
S.SAS jjrS;S jrSBS jrS
S.     SCS jjrS
S.     SDS jjr SE     SFS jjrSGS  jrSS!.SHS" jjrS;S# jrS;S$ jrSS%.SIS& jjrS;S' jr S;S( jr!SJSKS) jjr"S>SLS* jjr#S<SMS+ jjr$SNSOS, jjr%SNSOS- jjr&S;S. jr'SPS/ jr(SQS0 jr)  SR     SSS1 jjr*S
S2.STS3 jjr+SUS4 jr,SVS5 jr-SVS6 jr.SVS7 jr/SVS8 jr0S9r1g	)WListNameSpace   z#Namespace for list related methods.listc                &    UR                   U l         g N_s)selfseriess     L/home/james-whalen/.local/lib/python3.13/site-packages/polars/series/list.py__init__ListNameSpace.__init__   s    "II    c                    g)a  
Evaluate whether all boolean values in a list are true.

Returns
-------
Series
    Series of data type :class:`Boolean`.

Notes
-----
If there are no non-null elements in a row, the output is `True`.

Examples
--------
>>> s = pl.Series(
...     [[True, True], [False, True], [False, False], [None], [], None],
...     dtype=pl.List(pl.Boolean),
... )
>>> s.list.all()
shape: (6,)
Series: '' [bool]
[
    true
    false
    false
    true
    true
    null
]
N r   s    r   allListNameSpace.all        r    c                    g)a  
Evaluate whether any boolean value in a list is true.

Returns
-------
Series
    Series of data type :class:`Boolean`.

Notes
-----
If there are no non-null elements in a row, the output is `False`.

Examples
--------
>>> s = pl.Series(
...     [[True, True], [False, True], [False, False], [None], [], None],
...     dtype=pl.List(pl.Boolean),
... )
>>> s.list.any()
shape: (6,)
Series: '' [bool]
[
    true
    true
    false
    false
    false
    null
]
Nr"   r#   s    r   anyListNameSpace.any@   r&   r    c                    g)a  
Return the number of elements in each list.

Null values count towards the total.

Returns
-------
Series
    Series of data type :class:`UInt32`.

Examples
--------
>>> s = pl.Series([[1, 2, None], [5]])
>>> s.list.len()
shape: (2,)
Series: '' [u32]
[
    3
    1
]
Nr"   r#   s    r   lenListNameSpace.len`   r&   r    c                    g)a  
Drop all null values in the list.

The original order of the remaining elements is preserved.

Examples
--------
>>> s = pl.Series("values", [[None, 1, None, 2], [None], [3, 4]])
>>> s.list.drop_nulls()
shape: (3,)
Series: 'values' [list[i64]]
[
    [1, 2]
    []
    [3, 4]
]
Nr"   r#   s    r   
drop_nullsListNameSpace.drop_nullsw   r&   r    NF)fractionwith_replacementshuffleseedc                   g)a  
Sample from this list.

Parameters
----------
n
    Number of items to return. Cannot be used with `fraction`. Defaults to 1 if
    `fraction` is None.
fraction
    Fraction of items to return. Cannot be used with `n`.
with_replacement
    Allow values to be sampled more than once.
shuffle
    Shuffle the order of sampled data points.
seed
    Seed for the random number generator. If set to None (default), a
    random seed is generated for each sample operation.

Examples
--------
>>> s = pl.Series("values", [[1, 2, 3], [4, 5]])
>>> s.list.sample(n=pl.Series("n", [2, 1]), seed=1)
shape: (2,)
Series: 'values' [list[i64]]
[
    [2, 3]
    [5]
]
Nr"   )r   nr0   r1   r2   r3   s         r   sampleListNameSpace.sample   r&   r    c                    g)z
Sum all the arrays in the list.

Notes
-----
If there are no non-null elements in a row, the output is `0`.

Examples
--------
>>> s = pl.Series("values", [[1], [2, 3]])
>>> s.list.sum()
shape: (2,)
Series: 'values' [i64]
[
    1
    5
]
Nr"   r#   s    r   sumListNameSpace.sum   r&   r    c                    g)z
Compute the max value of the arrays in the list.

Examples
--------
>>> s = pl.Series("values", [[4, 1], [2, 3]])
>>> s.list.max()
shape: (2,)
Series: 'values' [i64]
[
    4
    3
]
Nr"   r#   s    r   maxListNameSpace.max   r&   r    c                    g)z
Compute the min value of the arrays in the list.

Examples
--------
>>> s = pl.Series("values", [[4, 1], [2, 3]])
>>> s.list.min()
shape: (2,)
Series: 'values' [i64]
[
    1
    2
]
Nr"   r#   s    r   minListNameSpace.min   r&   r    c                    g)z
Compute the mean value of the arrays in the list.

Examples
--------
>>> s = pl.Series("values", [[3, 1], [3, 3]])
>>> s.list.mean()
shape: (2,)
Series: 'values' [f64]
[
    2.0
    3.0
]
Nr"   r#   s    r   meanListNameSpace.mean   r&   r    c                    g)z
Compute the median value of the arrays in the list.

Examples
--------
>>> s = pl.Series("values", [[-1, 0, 1], [1, 10]])
>>> s.list.median()
shape: (2,)
Series: 'values' [f64]
[
        0.0
        5.5
]
Nr"   r#   s    r   medianListNameSpace.median   r&   r    c                    g)z
Compute the std value of the arrays in the list.

Examples
--------
>>> s = pl.Series("values", [[-1, 0, 1], [1, 10]])
>>> s.list.std()
shape: (2,)
Series: 'values' [f64]
[
        1.0
        6.363961
]
Nr"   r   ddofs     r   stdListNameSpace.std  r&   r    c                    g)z
Compute the var value of the arrays in the list.

Examples
--------
>>> s = pl.Series("values", [[-1, 0, 1], [1, 10]])
>>> s.list.var()
shape: (2,)
Series: 'values' [f64]
[
        1.0
        40.5
]
Nr"   rH   s     r   varListNameSpace.var  r&   r    T)
descending
nulls_lastmultithreadedc                   g)a  
Sort the arrays in this column.

Parameters
----------
descending
    Sort in descending order.
nulls_last
    Place null values last.
multithreaded
    Sort using multiple threads.

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [9, 1, 2]])
>>> s.list.sort()
shape: (2,)
Series: 'a' [list[i64]]
[
        [1, 2, 3]
        [1, 2, 9]
]
>>> s.list.sort(descending=True)
shape: (2,)
Series: 'a' [list[i64]]
[
        [3, 2, 1]
        [9, 2, 1]
]
Nr"   )r   rO   rP   rQ   s       r   sortListNameSpace.sort%  r&   r    c                    g)z
Reverse the arrays in the list.

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [9, 1, 2]])
>>> s.list.reverse()
shape: (2,)
Series: 'a' [list[i64]]
[
    [1, 2, 3]
    [2, 1, 9]
]
Nr"   r#   s    r   reverseListNameSpace.reverseK  r&   r    )maintain_orderc                   g)a  
Get the unique/distinct values in the list.

Parameters
----------
maintain_order
    Maintain order of data. This requires more work.

Examples
--------
>>> s = pl.Series("a", [[1, 1, 2], [2, 3, 3]])
>>> s.list.unique()
shape: (2,)
Series: 'a' [list[i64]]
[
    [1, 2]
    [2, 3]
]
Nr"   )r   rX   s     r   uniqueListNameSpace.unique[  r&   r    c                    g)z
Count the number of unique values in every sub-lists.

Examples
--------
>>> s = pl.Series("a", [[1, 1, 2], [2, 3, 4]])
>>> s.list.n_unique()
shape: (2,)
Series: 'a' [u32]
[
    2
    3
]
Nr"   r#   s    r   n_uniqueListNameSpace.n_uniquep  r&   r    c                    g)aV  
Concat the arrays in a Series dtype List in linear time.

Parameters
----------
other
    Columns to concat into a List Series

Examples
--------
>>> s1 = pl.Series("a", [["a", "b"], ["c"]])
>>> s2 = pl.Series("b", [["c"], ["d", None]])
>>> s1.list.concat(s2)
shape: (2,)
Series: 'a' [list[str]]
[
    ["a", "b", "c"]
    ["c", "d", null]
]
Nr"   r   others     r   concatListNameSpace.concat  r&   r    )null_on_oobc                   g)a!  
Get the value by index in the sublists.

So index `0` would return the first item of every sublist
and index `-1` would return the last item of every sublist
if an index is out of bounds, it will return a `None`.

Parameters
----------
index
    Index to return per sublist
null_on_oob
    Behavior if an index is out of bounds:

    * True -> set as null
    * False -> raise an error

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [], [1, 2]])
>>> s.list.get(0, null_on_oob=True)
shape: (3,)
Series: 'a' [i64]
[
    3
    null
    1
]
Nr"   )r   indexrd   s      r   getListNameSpace.get  r&   r    c                   g)a0  
Take sublists by multiple indices.

The indices may be defined in a single column, or by sublists in another
column of dtype `List`.

Parameters
----------
indices
    Indices to return per sublist
null_on_oob
    Behavior if an index is out of bounds:
    True -> set as null
    False -> raise an error
    Note that defaulting to raising an error is much cheaper

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [], [1, 2]])
>>> s.list.gather([0, 2], null_on_oob=True)
shape: (3,)
Series: 'a' [list[i64]]
[
    [3, 1]
    [null, null]
    [1, null]
]
Nr"   )r   indicesrd   s      r   gatherListNameSpace.gather  r&   r    c                    g)a9  
Take every n-th value start from offset in sublists.

Parameters
----------
n
    Gather every n-th element.
offset
    Starting index.

Examples
--------
>>> s = pl.Series("a", [[1, 2, 3], [], [6, 7, 8, 9]])
>>> s.list.gather_every(2, offset=1)
shape: (3,)
Series: 'a' [list[i64]]
[
    [2]
    []
    [7, 9]
]
Nr"   )r   r5   offsets      r   gather_everyListNameSpace.gather_every  r&   r    c                $    U R                  U5      $ r   )rg   )r   items     r   __getitem__ListNameSpace.__getitem__  s    xx~r    )ignore_nullsc                   g)aZ  
Join all string items in a sublist and place a separator between them.

This errors if inner type of list `!= String`.

Parameters
----------
separator
    string to separate the items with
ignore_nulls
    Ignore null values (default).

    If set to ``False``, null values will be propagated.
    If the sub-list contains any null values, the output is ``None``.

Returns
-------
Series
    Series of data type :class:`String`.

Examples
--------
>>> s = pl.Series([["foo", "bar"], ["hello", "world"]])
>>> s.list.join(separator="-")
shape: (2,)
Series: '' [str]
[
    "foo-bar"
    "hello-world"
]
Nr"   )r   	separatorru   s      r   joinListNameSpace.join  r&   r    c                    g)z
Get the first value of the sublists.

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [], [1, 2]])
>>> s.list.first()
shape: (3,)
Series: 'a' [i64]
[
    3
    null
    1
]
Nr"   r#   s    r   firstListNameSpace.first  r&   r    c                    g)z
Get the last value of the sublists.

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [], [1, 2]])
>>> s.list.last()
shape: (3,)
Series: 'a' [i64]
[
    1
    null
    2
]
Nr"   r#   s    r   lastListNameSpace.last,  r&   r    )nulls_equalc                   g)a  
Check if sublists contain the given item.

Parameters
----------
item
    Item that will be checked for membership
nulls_equal : bool, default True
    If True, treat null as a distinct value. Null values will not propagate.

Returns
-------
Series
    Series of data type :class:`Boolean`.

Examples
--------
>>> s = pl.Series("a", [[3, 2, 1], [], [1, 2]])
>>> s.list.contains(1)
shape: (3,)
Series: 'a' [bool]
[
    true
    false
    true
]
Nr"   )r   rr   r   s      r   containsListNameSpace.contains=  r&   r    c                    g)a-  
Retrieve the index of the minimal value in every sublist.

Returns
-------
Series
    Series of data type :class:`UInt32` or :class:`UInt64`
    (depending on compilation).

Examples
--------
>>> s = pl.Series("a", [[1, 2], [2, 1]])
>>> s.list.arg_min()
shape: (2,)
Series: 'a' [u32]
[
    0
    1
]
Nr"   r#   s    r   arg_minListNameSpace.arg_minZ  r&   r    c                    g)a-  
Retrieve the index of the maximum value in every sublist.

Returns
-------
Series
    Series of data type :class:`UInt32` or :class:`UInt64`
    (depending on compilation).

Examples
--------
>>> s = pl.Series("a", [[1, 2], [2, 1]])
>>> s.list.arg_max()
shape: (2,)
Series: 'a' [u32]
[
    1
    0
]
Nr"   r#   s    r   arg_maxListNameSpace.arg_maxp  r&   r    c                    g)uE  
Calculate the first discrete difference between shifted items of every sublist.

Parameters
----------
n
    Number of slots to shift.
null_behavior : {'ignore', 'drop'}
    How to handle null values.

Examples
--------
>>> s = pl.Series("a", [[1, 2, 3, 4], [10, 2, 1]])
>>> s.list.diff()
shape: (2,)
Series: 'a' [list[i64]]
[
    [null, 1, … 1]
    [null, -8, -1]
]

>>> s.list.diff(n=2)
shape: (2,)
Series: 'a' [list[i64]]
[
    [null, null, … 2]
    [null, null, -9]
]

>>> s.list.diff(n=2, null_behavior="drop")
shape: (2,)
Series: 'a' [list[i64]]
[
    [2, 2]
    [-9]
]
Nr"   )r   r5   null_behaviors      r   diffListNameSpace.diff  r&   r    c                    g)a  
Shift list values by the given number of indices.

Parameters
----------
n
    Number of indices to shift forward. If a negative value is passed, values
    are shifted in the opposite direction instead.

Notes
-----
This method is similar to the `LAG` operation in SQL when the value for `n`
is positive. With a negative value for `n`, it is similar to `LEAD`.

Examples
--------
By default, list values are shifted forward by one index.

>>> s = pl.Series([[1, 2, 3], [4, 5]])
>>> s.list.shift()
shape: (2,)
Series: '' [list[i64]]
[
        [null, 1, 2]
        [null, 4]
]

Pass a negative value to shift in the opposite direction instead.

>>> s.list.shift(-2)
shape: (2,)
Series: '' [list[i64]]
[
        [3, null, null]
        [null, null]
]
Nr"   r   r5   s     r   shiftListNameSpace.shift  r&   r    c                    g)ak  
Slice every sublist.

Parameters
----------
offset
    Start index. Negative indexing is supported.
length
    Length of the slice. If set to `None` (default), the slice is taken to the
    end of the list.

Examples
--------
>>> s = pl.Series("a", [[1, 2, 3, 4], [10, 2, 1]])
>>> s.list.slice(1, 2)
shape: (2,)
Series: 'a' [list[i64]]
[
    [2, 3]
    [2, 1]
]
Nr"   )r   rn   lengths      r   sliceListNameSpace.slice  r&   r    c                    g)a  
Slice the first `n` values of every sublist.

Parameters
----------
n
    Number of values to return for each sublist.

Examples
--------
>>> s = pl.Series("a", [[1, 2, 3, 4], [10, 2, 1]])
>>> s.list.head(2)
shape: (2,)
Series: 'a' [list[i64]]
[
    [1, 2]
    [10, 2]
]
Nr"   r   s     r   headListNameSpace.head  r&   r    c                    g)a  
Slice the last `n` values of every sublist.

Parameters
----------
n
    Number of values to return for each sublist.

Examples
--------
>>> s = pl.Series("a", [[1, 2, 3, 4], [10, 2, 1]])
>>> s.list.tail(2)
shape: (2,)
Series: 'a' [list[i64]]
[
    [3, 4]
    [2, 1]
]
Nr"   r   s     r   tailListNameSpace.tail  r&   r    c                    g)a  
Returns a column with a separate row for every list element.

Returns
-------
Series
    Series with the data type of the list elements.

See Also
--------
Series.reshape : Reshape this Series to a flat Series or a Series of Lists.

Examples
--------
>>> s = pl.Series("a", [[1, 2, 3], [4, 5, 6]])
>>> s.list.explode()
shape: (6,)
Series: 'a' [i64]
[
    1
    2
    3
    4
    5
    6
]
Nr"   r#   s    r   explodeListNameSpace.explode  r&   r    c                    g)a:  
Count how often the value produced by `element` occurs.

Parameters
----------
element
    An expression that produces a single value

Examples
--------
>>> s = pl.Series("a", [[0], [1], [1, 2, 3, 2], [1, 2, 1], [4, 4]])
>>> s.list.count_matches(1)
shape: (5,)
Series: 'a' [u32]
[
    0
    1
    1
    2
    0
]
Nr"   )r   elements     r   count_matchesListNameSpace.count_matches3  r&   r    c                    g)a  
Convert a List column into an Array column with the same inner data type.

Parameters
----------
width
    Width of the resulting Array column.

Returns
-------
Series
    Series of data type :class:`Array`.

Examples
--------
>>> s = pl.Series([[1, 2], [3, 4]], dtype=pl.List(pl.Int8))
>>> s.list.to_array(2)
shape: (2,)
Series: '' [array[i8, 2]]
[
        [1, 2]
        [3, 4]
]
Nr"   )r   widths     r   to_arrayListNameSpace.to_arrayK  r&   r    c                b   [        U[        5      (       aw  [        U R                  5      nUR	                  5       R                  [        R                  " UR                  5      R                  R                  US95      R                  5       $ [        U R                  R                  X5      5      $ )uo  
Convert the series of type `List` to a series of type `Struct`.

Parameters
----------
n_field_strategy : {'first_non_null', 'max_width'}
    Strategy to determine the number of fields of the struct.

    * "first_non_null": set number of fields equal to the length of the
      first non zero-length sublist.
    * "max_width": set number of fields as max length of all sublists.
fields
    If the name and number of the desired fields is known in advance
    a list of field names can be given, which will be assigned by index.
    Otherwise, to dynamically assign field names, a custom function can be
    used; if neither are set, fields will be `field_0, field_1 .. field_n`.

Examples
--------
Convert list to struct with default field name assignment:

>>> s1 = pl.Series("n", [[0, 1, 2], [0, 1]])
>>> s2 = s1.list.to_struct()
>>> s2
shape: (2,)
Series: 'n' [struct[3]]
[
    {0,1,2}
    {0,1,null}
]
>>> s2.struct.fields
['field_0', 'field_1', 'field_2']

Convert list to struct with field name assignment by function/index:

>>> s3 = s1.list.to_struct(fields=lambda idx: f"n{idx:02}")
>>> s3.struct.fields
['n00', 'n01', 'n02']

Convert list to struct with field name assignment by index from a list of names:

>>> s1.list.to_struct(fields=["one", "two", "three"]).struct.unnest()
shape: (2, 3)
┌─────┬─────┬───────┐
│ one ┆ two ┆ three │
│ --- ┆ --- ┆ ---   │
│ i64 ┆ i64 ┆ i64   │
╞═════╪═════╪═══════╡
│ 0   ┆ 1   ┆ 2     │
│ 0   ┆ 1   ┆ null  │
└─────┴─────┴───────┘
)fields)
isinstancer   r	   r   to_frame
select_seqFcolnamer   	to_struct	to_serieslist_to_struct)r   n_field_strategyr   ss       r   r   ListNameSpace.to_structe  s{    r fh''twwA

AEE!&&M..888GH dgg,,-=FGGr    )parallelc                   g)ao  
Run any polars expression against the lists' elements.

Parameters
----------
expr
    Expression to run. Note that you can select an element with `pl.first()`, or
    `pl.col()`
parallel
    Run all expression parallel. Don't activate this blindly.
    Parallelism is worth it if there is enough work to do per thread.

    This likely should not be use in the group by context, because we already
    parallel execution per group

Examples
--------
>>> s = pl.Series("a", [[1, 4], [8, 5], [3, 2]])
>>> s.list.eval(pl.element().rank())
shape: (3,)
Series: 'a' [list[f64]]
[
    [1.0, 2.0]
    [2.0, 1.0]
    [2.0, 1.0]
]
Nr"   )r   exprr   s      r   evalListNameSpace.eval  r&   r    c                    g)a  
Filter elements in each list by a boolean expression, returning a new Series of lists.

Parameters
----------
predicate
    A boolean expression evaluated on each list element.
    Use `pl.element()` to refer to the current element.

Examples
--------
>>> import polars as pl
>>> s = pl.Series("a", [[1, 4], [8, 5], [3, 2]])
>>> s.list.filter(pl.element() % 2 == 0)
shape: (3,)
Series: 'a' [list[i64]]
[
    [4]
    [8]
    [2]
]
Nr"   )r   	predicates     r   filterListNameSpace.filter  r&   r    c                    g)a  
Compute the SET UNION between the elements in this list and the elements of `other`.

Parameters
----------
other
    Right hand side of the set operation.

Examples
--------
>>> a = pl.Series([[1, 2, 3], [], [None, 3], [5, 6, 7]])
>>> b = pl.Series([[2, 3, 4], [3], [3, 4, None], [6, 8]])
>>> a.list.set_union(b)  # doctest: +IGNORE_RESULT
shape: (4,)
Series: '' [list[i64]]
[
        [1, 2, 3, 4]
        [3]
        [null, 3, 4]
        [5, 6, 7, 8]
]
Nr"   r`   s     r   	set_unionListNameSpace.set_union  r&   r    c                    g)a  
Compute the SET DIFFERENCE between the elements in this list and the elements of `other`.

Parameters
----------
other
    Right hand side of the set operation.

See Also
--------
polars.Series.list.diff: Calculates the n-th discrete difference of every sublist.

Examples
--------
>>> a = pl.Series([[1, 2, 3], [], [None, 3], [5, 6, 7]])
>>> b = pl.Series([[2, 3, 4], [3], [3, 4, None], [6, 8]])
>>> a.list.set_difference(b)
shape: (4,)
Series: '' [list[i64]]
[
        [1]
        []
        []
        [5, 7]
]
Nr"   r`   s     r   set_differenceListNameSpace.set_difference  r&   r    c                    g)a  
Compute the SET INTERSECTION between the elements in this list and the elements of `other`.

Parameters
----------
other
    Right hand side of the set operation.

Examples
--------
>>> a = pl.Series([[1, 2, 3], [], [None, 3], [5, 6, 7]])
>>> b = pl.Series([[2, 3, 4], [3], [3, 4, None], [6, 8]])
>>> a.list.set_intersection(b)
shape: (4,)
Series: '' [list[i64]]
[
        [2, 3]
        []
        [null, 3]
        [6]
]
Nr"   r`   s     r   set_intersectionListNameSpace.set_intersection  r&   r    c                    g)a  
Compute the SET SYMMETRIC DIFFERENCE between the elements in this list and the elements of `other`.

Parameters
----------
other
    Right hand side of the set operation.

Examples
--------
>>> a = pl.Series([[1, 2, 3], [], [None, 3], [5, 6, 7]])
>>> b = pl.Series([[2, 3, 4], [3], [3, 4, None], [6, 8]])
>>> a.list.set_symmetric_difference(b)
shape: (4,)
Series: '' [list[i64]]
[
    [1, 4]
    [3]
    [4]
    [5, 7, 8]
]
Nr"   r`   s     r   set_symmetric_difference&ListNameSpace.set_symmetric_difference)  r&   r    r   )r   r   returnNone)r   r   r   )r5   zint | IntoExprColumn | Noner0   zfloat | IntoExprColumn | Noner1   boolr2   r   r3   z
int | Noner   r   )   )rI   intr   r   )rO   r   rP   r   rQ   r   r   r   )rX   r   r   r   )ra   z!list[Series] | Series | list[Any]r   r   )rf   zint | Series | list[int]rd   r   r   r   )rj   z$Series | list[int] | list[list[int]]rd   r   r   r   )r   )r5   int | IntoExprColumnrn   r   r   r   )rr   r   r   r   )rw   r   ru   r   r   r   )rr   r   r   r   r   r   )r   ignore)r5   r   r   r   r   r   )r5   r   r   r   )rn   
int | Exprr   zint | Expr | Noner   r   )   )r5   r   r   r   )r   r   r   r   )r   r   r   r   )first_non_nullN)r   r   r   z+Callable[[int], str] | Sequence[str] | Noner   r   )r   r   r   r   r   r   )r   r   r   r   )ra   zSeries | Collection[Any]r   r   )2__name__
__module____qualname____firstlineno____doc__	_accessorr   r$   r(   r+   r.   r6   r9   r<   r?   rB   rE   rJ   rM   rS   rV   rZ   r]   rb   rg   rk   ro   rs   rx   r{   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes__r"   r    r   r   r      s   -I&@@.* *.% 37!&%&% 0	%
 % % % 
%N(     & ! "$ $ 	$
 $ 
$L  05 * 4 "	"'" 	"
 
"P "	!5! 	!
 
!H GH%/C	4 GK B"" ?C :,,%N%N0**:08 7G>BAH3AH <AH 
	AHF 49 :0080r    r   N)
__future__r   collections.abcr   typingr   r   r   polarsr   r   polars._utils.wrapr	   polars.series.utilsr
   r   r   r   polars._plrr   polars._typingr   r   r   r   r   r"   r    r   <module>r      sL    " $ / / ! % -*#$  g g gr    