ó
    à'·hc  ã                  ó¼   • S r SSKJr  SSKrSSKJr  SSKJr  \R                  " \	5         SSK
Jr  SSS5        \(       a  SSKJr  SS jrg! , (       d  f       N!= f)	z~
Module containing the `len` function.

Keep this function in its own module to avoid conflicts with Python's built-in `len`.
é    )ÚannotationsN)ÚTYPE_CHECKING)Ú	wrap_expr)ÚExprc                 ó>   • [        [        R                  " 5       5      $ )u˜  
Return the number of rows in the context.

This is similar to `COUNT(*)` in SQL.

Returns
-------
Expr
    Expression of data type :class:`UInt32`.

Examples
--------
>>> df = pl.DataFrame(
...     {
...         "a": [1, 2, None],
...         "b": [3, None, None],
...         "c": ["foo", "bar", "foo"],
...     }
... )
>>> df.select(pl.len())
shape: (1, 1)
â”Œâ”€â”€â”€â”€â”€â”
â”‚ len â”‚
â”‚ --- â”‚
â”‚ u32 â”‚
â•žâ•â•â•â•â•â•¡
â”‚ 3   â”‚
â””â”€â”€â”€â”€â”€â”˜

Generate an index column by using `len` in conjunction with :func:`int_range`.

>>> df.select(
...     pl.int_range(pl.len(), dtype=pl.UInt32).alias("index"),
...     pl.all(),
... )
shape: (3, 4)
â”Œâ”€â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”
â”‚ index â”† a    â”† b    â”† c   â”‚
â”‚ ---   â”† ---  â”† ---  â”† --- â”‚
â”‚ u32   â”† i64  â”† i64  â”† str â”‚
â•žâ•â•â•â•â•â•â•â•ªâ•â•â•â•â•â•â•ªâ•â•â•â•â•â•â•ªâ•â•â•â•â•â•¡
â”‚ 0     â”† 1    â”† 3    â”† foo â”‚
â”‚ 1     â”† 2    â”† null â”† bar â”‚
â”‚ 2     â”† null â”† null â”† foo â”‚
â””â”€â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”€â”€â”˜
)r   ÚplrÚlen© ó    ÚgC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\polars/functions/len.pyr	   r	      s   € ô^ ”S—W’W“YÓÐr   )Úreturnr   )Ú__doc__Ú
__future__r   Ú
contextlibÚtypingr   Úpolars._utils.wrapr   ÚsuppressÚImportErrorÚpolars._plrÚ_plrr   Úpolarsr   r	   r
   r   r   Ú<module>r      sD   ðñõ #ã Ý  å (à×Ò˜Õ%Ý÷ &ö Ýõ/ ÷ &Õ%ús   «AÁ
A