§
    cŠtj6  ã                  ó‚  — d dl mZ d dlmZmZmZmZmZ d dlm	Z	m
Z
mZmZmZ d dlmZ d dlmZmZmZmZmZmZ d dlmZmZmZmZ d dlmZmZ d dlm Z m!Z!m"Z"m#Z#m$Z$ ersd d	l%m&Z&m'Z'm(Z( d d
l)m*Z* d dl+Z,d dl-Z.d dl/Z0d dl1m2Z2m3Z3m4Z4 d dl5m6Z6 d dl7m8Z8 d dlm9Z9m:Z:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZH  G d„ de4eedf         ¦  «        ZI eddd¬¦  «        ZJg d¢ZK G d„ ded         eee         ed         eee         ¦  «        ZL G d„ deLe         ee         ¦  «        ZM G d „ d!e e         e!e         eeef         ¦  «        ZN G d"„ d#eNeef         eeef         ¦  «        ZO G d$„ d%eNeef         e	e         eeef         ¦  «        ZP G d&„ d'eNeef         e
e         eeef         ¦  «        ZQ G d(„ d)eNeef         ee         eeef         ¦  «        ZR G d*„ d+eNeef         ee         eeef         ¦  «        ZS G d,„ d-eNeef         ee         eeef         ¦  «        ZT G d.„ d/eeeJf         ¦  «        ZUdS )0é    )Úannotations)ÚTYPE_CHECKINGÚAnyÚGenericÚLiteralÚProtocol)ÚCatNamespaceÚDateTimeNamespaceÚListNamespaceÚStringNamespaceÚStructNamespace)ÚCompliantColumn)ÚCompliantSeriesT_coÚEagerDataFrameAnyÚEagerSeriesTÚEagerSeriesT_coÚNativeSeriesTÚNativeSeriesT_co)ÚFromIterableÚ
FromNativeÚNumpyConvertibleÚ
ToNarwhals)ÚTypeVarÚassert_never)Ú_StoresCompliantÚ_StoresNativeÚis_compliant_seriesÚis_sized_multi_index_selectorÚunstable)ÚIterableÚIteratorÚSequence)Ú
ModuleTypeN)ÚNotRequiredÚSelfÚ	TypedDict)ÚCompliantDataFrame)ÚEagerNamespace)ÚImplementationÚVersionÚ_LimitedContext)ÚDType)ÚSeries)ÚInto1DArrayÚ	IntoDTypeÚMultiIndexSelectorÚPythonLiteralÚRollingInterpolationMethodÚSizedMultiIndexSelectorÚ_1DArrayÚ_SliceIndexc                  ó$   — e Zd ZU ded<   ded<   dS )ÚHistDataz/NotRequired[list[float] | _1DArray | list[Any]]Ú
breakpointz2NativeSeriesT | _1DArray | _CountsT_co | list[Any]ÚcountN)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__© ó    úX/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/narwhals/_compliant/series.pyr7   r7   8   s*   € € € € € € ØCÐCÐCÑCØAÐAÐAÑAÐAÐAr?   r7   Ú_CountsT_coúIterable[Any]T)ÚboundÚ	covariant)	ÚCompliantSeriesÚEagerSeriesÚEagerSeriesCatNamespaceÚEagerSeriesDateTimeNamespaceÚEagerSeriesHistÚEagerSeriesListNamespaceÚEagerSeriesNamespaceÚEagerSeriesStringNamespaceÚEagerSeriesStructNamespacec                  ó¨  — e Zd ZU ded<   edˆd„¦   «         Zd‰d„ZdŠd	„Zed‹d„¦   «         Z	dŒd„Z
d�d„ZdŽd„Zed�d„¦   «         Zed�d„¦   «         Zd‘d„Zd’d!„Zd“d$„Zd”d&„Zd•d(„Zed–d*„¦   «         Zed+d,d-œd—d1„¦   «         Zd˜d2„Zd˜d3„Zd˜d4„Zd˜d5„Zd™d6„Zd™d7„Zdšd:„Zd•d;„Zd•d<„Zd‰d=„Zd•d>„Z d›d@„Z!dœdA„Z"dœdB„Z#d�dE„Z$dždF„Z%d™dG„Z&dŸdI„Z'd dL„Z(d¡dN„Z)d•dO„Z*d¢dP„Z+d£dR„Z,d£dS„Z-d¢dT„Z.d•dU„Z/d•dV„Z0d¤dZ„Z1d¥d]„Z2d¦d`„Z3džda„Z4d¡db„Z5d§dd„Z6d¨df„Z7d£dg„Z8dždh„Z9d©dj„Z:dªdn„Z;d«do„Z<d¬dq„Z=d­ds„Z>d®du„Z?dvdwœd¯dy„Z@d°d~„ZAd¨d„ZBd±d�„ZCeDd²d…„¦   «         ZEeDd³d‡„¦   «         ZFd,S )´rE   r)   Ú_implementationÚreturnr   c                ó   — d S ©Nr>   ©Úselfs    r@   ÚnativezCompliantSeries.nativeW   s   € Ø'* sr?   r%   c                ó   — | S rR   r>   rS   s    r@   Ú__narwhals_series__z#CompliantSeries.__narwhals_series__Y   s   € Øˆr?   r#   c                ó   — d S rR   r>   rS   s    r@   Ú__native_namespace__z$CompliantSeries.__native_namespace__\   ó   € € € r?   ÚdataÚcontextr+   c              ó   — d S rR   r>   ©Úclsr[   r\   s      r@   Úfrom_nativezCompliantSeries.from_native]   s   € ØWZÐWZr?   úSeries[NativeSeriesT]c                ó:   — | j                              | d¬¦  «        S )NÚfull)Úlevel)Ú_versionÚseriesrS   s    r@   Úto_narwhalszCompliantSeries.to_narwhals_   s   € ØŒ}×#Ò# D°Ð#Ñ7Ô7Ð7r?   rf   r   c                ó   — d S rR   r>   ©rT   rf   s     r@   Ú_with_nativezCompliantSeries._with_nativeb   rZ   r?   Úversionr*   c                ó   — d S rR   r>   )rT   rk   s     r@   Ú_with_versionzCompliantSeries._with_versionc   rZ   r?   r,   c                ó   — d S rR   r>   rS   s    r@   ÚdtypezCompliantSeries.dtypef   s   € Ø!˜cr?   Ústrc                ó   — d S rR   r>   rS   s    r@   ÚnamezCompliantSeries.nameh   s   € Ø˜3r?   ro   Úcopyúbool | Noner4   c               ó   — d S rR   r>   )rT   ro   rs   s      r@   Ú	__array__zCompliantSeries.__array__j   rZ   r?   ÚotherÚboolc                ó   — d S rR   r>   ©rT   rw   s     r@   Ú__contains__zCompliantSeries.__contains__k   rZ   r?   ÚitemúMultiIndexSelector[Self]c                ó   — d S rR   r>   ©rT   r|   s     r@   Ú__getitem__zCompliantSeries.__getitem__l   rZ   r?   úIterator[Any]c                ó   — d S rR   r>   rS   s    r@   Ú__iter__zCompliantSeries.__iter__m   rZ   r?   Úintc                ó*   — t          | j        ¦  «        S rR   )ÚlenrU   rS   s    r@   Ú__len__zCompliantSeries.__len__n   s   € Ý�4”;ÑÔÐr?   r.   c              ó   — d S rR   r>   r^   s      r@   Ú
from_numpyzCompliantSeries.from_numpyq   s   € ØTWÐTWr?   Ú N)rr   ro   rB   rr   úIntoDType | Nonec              ó   — d S rR   r>   )r_   r[   r\   rr   ro   s        r@   Úfrom_iterablezCompliantSeries.from_iterables   s	   € ð ˆsr?   c                ó   — d S rR   r>   rz   s     r@   Ú__radd__zCompliantSeries.__radd__}   rZ   r?   c                ó   — d S rR   r>   rz   s     r@   Ú__rand__zCompliantSeries.__rand__~   rZ   r?   c                ó   — d S rR   r>   rz   s     r@   Ú__rmul__zCompliantSeries.__rmul__   rZ   r?   c                ó   — d S rR   r>   rz   s     r@   Ú__ror__zCompliantSeries.__ror__€   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚallzCompliantSeries.all�   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚanyzCompliantSeries.any‚   rZ   r?   Úignore_nullsr1   c               ó   — d S rR   r>   )rT   rš   s     r@   Ú	any_valuezCompliantSeries.any_valueƒ   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   Úarg_maxzCompliantSeries.arg_max„   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   Úarg_minzCompliantSeries.arg_min…   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   Úarg_truezCompliantSeries.arg_true†   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   r9   zCompliantSeries.count‡   rZ   r?   Ú	predicatec                ó   — d S rR   r>   )rT   r¤   s     r@   ÚfilterzCompliantSeries.filterˆ   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚfirstzCompliantSeries.first‰   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚlastzCompliantSeries.lastŠ   rZ   r?   ÚnÚoffsetc                ó   — d S rR   r>   )rT   r«   r¬   s      r@   Úgather_everyzCompliantSeries.gather_every‹   rZ   r?   c                ó   — d S rR   r>   ©rT   r«   s     r@   ÚheadzCompliantSeries.headŒ   rZ   r?   c                ó2   — |                       ¦   «         dk    S ©Nr   )r†   rS   s    r@   Úis_emptyzCompliantSeries.is_empty�   s   € Ø�xŠx‰zŒz˜QŠÐr?   Ú
descendingc               ó   — d S rR   r>   )rT   rµ   s     r@   Ú	is_sortedzCompliantSeries.is_sorted�   rZ   r?   Úindexú
int | Nonec                ó   — d S rR   r>   )rT   r¸   s     r@   r|   zCompliantSeries.item‘   rZ   r?   úfloat | Nonec                ó   — d S rR   r>   rS   s    r@   ÚkurtosiszCompliantSeries.kurtosis’   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   r†   zCompliantSeries.len“   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚmaxzCompliantSeries.max”   rZ   r?   Úfloatc                ó   — d S rR   r>   rS   s    r@   ÚmeanzCompliantSeries.mean•   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚmedianzCompliantSeries.median–   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚminzCompliantSeries.min—   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   Ún_uniquezCompliantSeries.n_unique˜   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   Ú
null_countzCompliantSeries.null_count™   rZ   r?   ÚquantileÚinterpolationr2   c                ó   — d S rR   r>   )rT   rÌ   rÍ   s      r@   rÌ   zCompliantSeries.quantileš   s   € à�r?   Úwith_replacementÚseedc               ó   — d S rR   r>   )rT   r«   rÏ   rÐ   s       r@   ÚsamplezCompliantSeries.sample�   rZ   r?   ÚindicesÚvaluesc                ó   — d S rR   r>   )rT   rÓ   rÔ   s      r@   ÚscatterzCompliantSeries.scatterž   rZ   r?   c                ó   — d S rR   r>   r°   s     r@   ÚshiftzCompliantSeries.shiftŸ   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚskewzCompliantSeries.skew    rZ   r?   Ú
nulls_lastc               ó   — d S rR   r>   )rT   rµ   rÛ   s      r@   ÚsortzCompliantSeries.sort¡   rZ   r?   Úddofc               ó   — d S rR   r>   ©rT   rÞ   s     r@   ÚstdzCompliantSeries.std¢   rZ   r?   c                ó   — d S rR   r>   rS   s    r@   ÚsumzCompliantSeries.sum£   rZ   r?   c                ó   — d S rR   r>   r°   s     r@   ÚtailzCompliantSeries.tail¤   rZ   r?   úpa.Array[Any]c                ó   — d S rR   r>   rS   s    r@   Úto_arrowzCompliantSeries.to_arrow¥   rZ   r?   Ú	separatorÚ
drop_firstú'CompliantDataFrame[Self, Any, Any, Any]c               ó   — d S rR   r>   )rT   ré   rê   s      r@   Ú
to_dummieszCompliantSeries.to_dummies¦   ó   € à25°#r?   c                ó   — d S rR   r>   rS   s    r@   Úto_framezCompliantSeries.to_frame©   rZ   r?   ú	list[Any]c                ó   — d S rR   r>   rS   s    r@   Úto_listzCompliantSeries.to_listª   rZ   r?   úpd.Series[Any]c                ó   — d S rR   r>   rS   s    r@   Ú	to_pandaszCompliantSeries.to_pandas«   rZ   r?   ú	pl.Seriesc                ó   — d S rR   r>   rS   s    r@   Ú	to_polarszCompliantSeries.to_polars¬   rZ   r?   F)Úmaintain_orderrú   c               ó   — d S rR   r>   )rT   rú   s     r@   ÚuniquezCompliantSeries.unique­   rZ   r?   rÝ   Úparallelú
str | NoneÚ	normalizec               ó   — d S rR   r>   )rT   rÝ   rý   rr   rÿ   s        r@   Úvalue_countszCompliantSeries.value_counts®   rî   r?   c               ó   — d S rR   r>   rà   s     r@   ÚvarzCompliantSeries.var±   rZ   r?   Úmaskc                ó   — d S rR   r>   )rT   r  rw   s      r@   Úzip_withzCompliantSeries.zip_with²   rZ   r?   Úbinsúlist[float]Úinclude_breakpointc               ó   — dS )z(`Series.hist(bins=..., bin_count=None)`.Nr>   )rT   r  r	  s      r@   Úhist_from_binszCompliantSeries.hist_from_binsµ   ó	   € ð
 	ˆr?   Ú	bin_countc               ó   — dS )z(`Series.hist(bins=None, bin_count=...)`.Nr>   )rT   r  r	  s      r@   Úhist_from_bin_countz#CompliantSeries.hist_from_bin_count¼   r  r?   ©rP   r   )rP   r%   )rP   r#   )r[   r   r\   r+   rP   r%   )rP   ra   )rf   r   rP   r%   )rk   r*   rP   r%   )rP   r,   )rP   rp   )ro   r   rs   rt   rP   r4   )rw   r   rP   rx   )r|   r}   rP   r   )rP   r�   )rP   r„   )r[   r.   r\   r+   rP   r%   )
r[   rB   r\   r+   rr   rp   ro   r‹   rP   r%   )rw   r   rP   r%   ©rP   rx   )rš   rx   rP   r1   )r¤   r   rP   r%   )rP   r1   )r«   r„   r¬   r„   rP   r%   )r«   r„   rP   r%   )rµ   rx   rP   rx   )r¸   r¹   rP   r   )rP   r»   )rP   r   )rP   rÁ   )rÌ   rÁ   rÍ   r2   rP   rÁ   )r«   r„   rÏ   rx   rÐ   r¹   rP   r%   )rÓ   r%   rÔ   r%   rP   r%   )rµ   rx   rÛ   rx   rP   r%   )rÞ   r„   rP   rÁ   )rP   ræ   )ré   rp   rê   rx   rP   rë   )rP   rë   )rP   rñ   )rP   rô   )rP   r÷   )rú   rx   rP   r%   )
rÝ   rx   rý   rx   rr   rþ   rÿ   rx   rP   rë   )r  r   rw   r   rP   r%   )r  r  r	  rx   rP   rë   )r  r„   r	  rx   rP   rë   )Gr:   r;   r<   r=   ÚpropertyrU   rW   rY   Úclassmethodr`   rg   rj   rm   ro   rr   rv   r{   r€   rƒ   r‡   r‰   r�   r�   r‘   r“   r•   r—   r™   rœ   rž   r    r¢   r9   r¦   r¨   rª   r®   r±   r´   r·   r|   r½   r†   rÀ   rÃ   rÅ   rÇ   rÉ   rË   rÌ   rÒ   rÖ   rØ   rÚ   rÝ   rá   rã   rå   rè   rí   rð   ró   rö   rù   rü   r  r  r  r   r  r  r>   r?   r@   rE   rE   L   s÷  € € € € € € ð $Ð#Ð#Ñ#àØ*Ð*Ð*ñ „XØ*ðð ð ð ð 6Ð5Ð5Ð5ØØZÐZÐZñ „[ØZð8ð 8ð 8ð 8ð 5Ð4Ð4Ð4Ø:Ð:Ð:Ð:ð Ø!Ð!Ð!ñ „XØ!ØØÐÐñ „XØØJÐJÐJÐJØ3Ð3Ð3Ð3ØEÐEÐEÐEØ,Ð,Ð,Ð,ð ð  ð  ð  ð ØWÐWÐWñ „[ØWØð Ø"&ðð ð ð ð ñ „[ðð 0Ð/Ð/Ð/Ø/Ð/Ð/Ð/Ø/Ð/Ð/Ð/Ø.Ð.Ð.Ð.ØÐÐÐØÐÐÐØDÐDÐDÐDØ!Ð!Ð!Ð!Ø!Ð!Ð!Ð!Ø#Ð#Ð#Ð#ØÐÐÐØ1Ð1Ð1Ð1Ø)Ð)Ð)Ð)Ø(Ð(Ð(Ð(Ø<Ð<Ð<Ð<Ø'Ð'Ð'Ð'ðð ð ð ð :Ð9Ð9Ð9Ø1Ð1Ð1Ð1Ø+Ð+Ð+Ð+ØÐÐÐØÐÐÐØ Ð Ð Ð Ø"Ð"Ð"Ð"ØÐÐÐØ"Ð"Ð"Ð"Ø$Ð$Ð$Ð$ðð ð ð ð WÐVÐVÐVØ?Ð?Ð?Ð?Ø(Ð(Ð(Ð(Ø'Ð'Ð'Ð'ØFÐFÐFÐFØ-Ð-Ð-Ð-ØÐÐÐØ'Ð'Ð'Ð'Ø,Ð,Ð,Ð,ð6ð 6ð 6ð 6ð GÐFÐFÐFØ'Ð'Ð'Ð'Ø.Ð.Ð.Ð.Ø)Ð)Ð)Ð)Ø/4ÐBÐBÐBÐBÐBÐBð6ð 6ð 6ð 6ð .Ð-Ð-Ð-Ø:Ð:Ð:Ð:ð ðð ð ñ „Xðð ðð ð ñ „Xðð ð r?   rE   )r4   r.   ra   c                  ó  — e Zd ZU ded<   ded<   ded<   ded<   ed,d„¦   «         Zed-d„¦   «         Zd.d„Zddœd/d„Z	d0d„Z
d1d„Zd2d„Zd3d „Zed4d"„¦   «         Zed5d$„¦   «         Zed6d&„¦   «         Zed7d(„¦   «         Zed8d*„¦   «         Zd+S )9rF   r   Ú_native_seriesr)   rO   r*   re   rx   Ú
_broadcastrP   útuple[int, ...]c                ó4   — | j                              ¦   «         S rR   )rO   Ú_backend_versionrS   s    r@   r  zEagerSeries._backend_versionÊ   s   € àÔ#×4Ò4Ñ6Ô6Ð6r?   rf   r%   úSequence[Self]c                ó   — dS )aà  Ensure all of `series` have the same length (and index if `pandas`).

        Scalars get broadcasted to the full length of the longest Series.

        This is useful when you need to construct a full Series anyway, such as:

            DataFrame.select(...)

        It should not be used in binary operations, such as:

            nw.col("a") - nw.col("a").mean()

        because then it's more efficient to extract the right-hand-side's single element as a scalar.
        Nr>   )r_   rf   s     r@   Ú_align_full_broadcastz!EagerSeries._align_full_broadcastÎ   s	   € ð  	ˆr?   Úvaluec                ó>   — |                       |g| j        | ¬¦  «        S )N)rr   r\   )r�   rr   )rT   r  s     r@   Ú_from_scalarzEagerSeries._from_scalarà   s!   € Ø×!Ò! 5 '°´	À4Ð!ÑHÔHÐHr?   F)Úpreserve_broadcastr   r   c               ó   — dS )a«  Return a new `CompliantSeries`, wrapping the native `series`.

        In cases when operations are known to not affect whether a result should
        be broadcast, we can pass `preserve_broadcast=True`.
        Set this with care - it should only be set for unary expressions which don't
        change length or order, such as `.alias` or `.fill_null`. If in doubt, don't
        set it, you probably don't need it.
        Nr>   )rT   rf   r   s      r@   rj   zEagerSeries._with_nativeã   s	   € ð 	ˆr?   ú2EagerNamespace[Any, Self, Any, Any, NativeSeriesT]c                ó   — d S rR   r>   rS   s    r@   Ú__narwhals_namespace__z"EagerSeries.__narwhals_namespace__ð   s   € à=@¸Sr?   Úrowsú&SizedMultiIndexSelector[NativeSeriesT]c                ó   — d S rR   r>   ©rT   r%  s     r@   Ú_gatherzEagerSeries._gatherô   rZ   r?   ú_SliceIndex | rangec                ó   — d S rR   r>   r(  s     r@   Ú_gather_slicezEagerSeries._gather_sliceõ   rZ   r?   r|   r}   c                ó   — t          |t          t          f¦  «        r|                      |¦  «        S t	          |¦  «        r|                      |j        ¦  «        S t          |¦  «        r|                      |¦  «        S t          |¦  «         d S rR   )	Ú
isinstanceÚsliceÚranger,  r   r)  rU   r   r   r   s     r@   r€   zEagerSeries.__getitem__ö   s†   € Ý�d�U¥E˜NÑ+Ô+ð 	,Ø×%Ò% dÑ+Ô+Ð+Ý˜tÑ$Ô$ð 	&Ø—<’< ¤Ñ,Ô,Ð,Ý*¨4Ñ0Ô0ð 	&Ø—<’< Ñ%Ô%Ð%Ý�TÑÔÐÐÐr?   ú/EagerSeriesStringNamespace[Self, NativeSeriesT]c                ó   — d S rR   r>   rS   s    r@   rp   zEagerSeries.strÿ   s   € ØFIÀcr?   ú1EagerSeriesDateTimeNamespace[Self, NativeSeriesT]c                ó   — d S rR   r>   rS   s    r@   ÚdtzEagerSeries.dt  s   € ØGJÀsr?   ú,EagerSeriesCatNamespace[Self, NativeSeriesT]c                ó   — d S rR   r>   rS   s    r@   ÚcatzEagerSeries.cat  s   € ØCFÀ3r?   ú-EagerSeriesListNamespace[Self, NativeSeriesT]c                ó   — d S rR   r>   rS   s    r@   ÚlistzEagerSeries.list  s   € ØEHÀSr?   ú/EagerSeriesStructNamespace[Self, NativeSeriesT]c                ó   — d S rR   r>   rS   s    r@   ÚstructzEagerSeries.struct  s   € ØILÈr?   N©rP   r  )rf   r%   rP   r  )r  r   rP   r%   )rf   r   r   rx   rP   r%   )rP   r"  )r%  r&  rP   r%   )r%  r*  rP   r%   )r|   r}   rP   r%   )rP   r1  )rP   r3  )rP   r6  )rP   r9  )rP   r<  )r:   r;   r<   r=   r  r  r  r  r  rj   r$  r)  r,  r€   rp   r5  r8  r;  r>  r>   r?   r@   rF   rF   Ä   st  € € € € € € ØÐÐÑØ#Ð#Ð#Ñ#ØÐÐÑØÐÐÑàð7ð 7ð 7ñ „Xð7ð ðð ð ñ „[ðð"Ið Ið Ið Ið DIðð ð ð ð ð ðAð Að Að Að QÐPÐPÐPØCÐCÐCÐCðð ð ð ð ØIÐIÐIñ „XØIØØJÐJÐJñ „XØJØØFÐFÐFñ „XØFØØHÐHÐHñ „XØHØØLÐLÐLñ „XØLÐLÐLr?   rF   c                  óš   — e Zd ZU ded<   edd„¦   «         Zedd„¦   «         Zedd„¦   «         Zedd
„¦   «         Zedd„¦   «         Z	dd„Z
dS )Ú_SeriesNamespacer   Ú_compliant_seriesrP   c                ó   — | j         S rR   ©rB  rS   s    r@   Ú	compliantz_SeriesNamespace.compliant  s   € àÔ%Ð%r?   r)   c                ó   — | j         j        S rR   )rE  rO   rS   s    r@   Úimplementationz_SeriesNamespace.implementation  s   € àŒ~Ô-Ð-r?   r  c                ó4   — | j                              ¦   «         S rR   )rG  r  rS   s    r@   Úbackend_versionz _SeriesNamespace.backend_version  s   € àÔ"×3Ò3Ñ5Ô5Ð5r?   r*   c                ó   — | j         j        S rR   )rE  re   rS   s    r@   rk   z_SeriesNamespace.version  s   € àŒ~Ô&Ð&r?   r   c                ó   — | j         j        S rR   )rB  rU   rS   s    r@   rU   z_SeriesNamespace.native"  s   € àÔ%Ô,Ð,r?   rf   r   c               ó6   — | j                              |¦  «        S rR   )rE  rj   ri   s     r@   Úwith_nativez_SeriesNamespace.with_native&  s   € ØŒ~×*Ò*¨6Ñ2Ô2Ð2r?   N)rP   r   )rP   r)   r?  )rP   r*   )rP   r   )rf   r   rP   r   )r:   r;   r<   r=   r  rE  rG  rI  rk   rU   rM  r>   r?   r@   rA  rA    sÖ   € € € € € € ð
 +Ð*Ð*Ñ*àð&ð &ð &ñ „Xð&ð ð.ð .ð .ñ „Xð.ð ð6ð 6ð 6ñ „Xð6ð ð'ð 'ð 'ñ „Xð'ð ð-ð -ð -ñ „Xð-ð3ð 3ð 3ð 3ð 3ð 3r?   rA  c                  ó"   — e Zd ZU ded<   dd„ZdS )	rK   r   rB  rf   rP   ÚNonec               ó   — || _         d S rR   rD  ri   s     r@   Ú__init__zEagerSeriesNamespace.__init__0  s   € Ø!'ˆÔÐÐr?   N)rf   r   rP   rO  )r:   r;   r<   r=   rQ  r>   r?   r@   rK   rK   *  s8   € € € € € € ð 'Ð&Ð&Ñ&ð(ð (ð (ð (ð (ð (r?   rK   c                  ó   — e Zd ZdS )rG   N©r:   r;   r<   r>   r?   r@   rG   rG   4  ó   € € € € € ð €3r?   rG   c                  ó   — e Zd ZdS )rH   NrS  r>   r?   r@   rH   rH   ;  rT  r?   rH   c                  ó   — e Zd ZdS )rJ   NrS  r>   r?   r@   rJ   rJ   B  rT  r?   rJ   c                  ó   — e Zd ZdS )rL   NrS  r>   r?   r@   rL   rL   I  rT  r?   rL   c                  ó   — e Zd ZdS )rM   NrS  r>   r?   r@   rM   rM   P  rT  r?   rM   c                  ó´   — e Zd ZU ded<   ded<   ded<   ed*d	„¦   «         Zed+d„¦   «         Zd,d„Zddœd-d„Z	d.d„Z
d/d„Zd0d„Zd1d"„Zd2d$„Zd3d&„Zd4d'„Zd5d(„Zd)S )6rI   úEagerSeries[NativeSeriesT]Ú_seriesrx   Ú_breakpointú$HistData[NativeSeriesT, _CountsT_co]Ú_datarP   r   c                ó   — | j         j        S rR   )r[  rU   rS   s    r@   rU   zEagerSeriesHist.native]  s   € àŒ|Ô"Ð"r?   rf   r	  r%   c               óL   — |                       | ¦  «        }||_        ||_        |S rR   )Ú__new__r[  r\  )r_   rf   r	  Úobjs       r@   Úfrom_serieszEagerSeriesHist.from_seriesa  s(   € ð �kŠk˜#ÑÔˆØˆŒØ,ˆŒØˆ
r?   r   c                ó   — d S rR   r>   rS   s    r@   rð   zEagerSeriesHist.to_framej  rZ   r?   Úboth)ÚclosedÚstartrÁ   ÚendÚnum_samplesr„   rf  úLiteral['both', 'none']r4   c               ó   — d S rR   r>   )rT   rg  rh  ri  rf  s        r@   Ú_linear_spacezEagerSeriesHist._linear_spacek  s	   € ð �3r?   c                ó   — d S rR   r>   rS   s    r@   Úis_empty_serieszEagerSeriesHist.is_empty_seriesu  rZ   r?   c                ó"   — | j         rg g dœndg iS )N)r8   r9   r9   )r\  rS   s    r@   Ú
data_emptyzEagerSeriesHist.data_emptyx  s"   € Ø26Ô2BÐU˜b¨2Ð.Ð.Ð.ÈÐRTÈÐUr?   Úargúint | list[float]c               ó   — d S rR   r>   )rT   rq  s     r@   Úseries_emptyzEagerSeriesHist.series_empty}  ó   € à/2¨sr?   r  r  c               óò   — t          |¦  «        dk    r|                      ¦   «         | _        nI|                      ¦   «         r|                      |¦  «        | _        n|                      |¦  «        | _        | S )Né   )r†   rp  r^  rn  rt  Ú_calculate_hist©rT   r  s     r@   Ú	with_binszEagerSeriesHist.with_bins�  si   € Ýˆt‰9Œ9˜Š>ˆ>ØŸšÑ*Ô*ˆDŒJˆJØ×!Ò!Ñ#Ô#ð 	4Ø×*Ò*¨4Ñ0Ô0ˆDŒJˆJà×-Ò-¨dÑ3Ô3ˆDŒJØˆr?   r  c               óþ   — |dk    r|                       ¦   «         | _        n\|                      ¦   «         r|                      |¦  «        | _        n-|                      |                      |¦  «        ¦  «        | _        | S r³   )rp  r^  rn  rt  rx  Ú_calculate_bins©rT   r  s     r@   Úwith_bin_countzEagerSeriesHist.with_bin_countŠ  sr   € Ø˜Š>ˆ>ØŸšÑ*Ô*ˆDŒJˆJØ×!Ò!Ñ#Ô#ð 	OØ×*Ò*¨9Ñ5Ô5ˆDŒJˆJà×-Ò-¨d×.BÒ.BÀ9Ñ.MÔ.MÑNÔNˆDŒJØˆr?   úlist[float] | _1DArrayc               óx   — t          |t          ¦  «        r|                      dd|dz   ¦  «        n|}|dd …         S )Nr   rw  )r.  r„   rl  )rT   rq  r  s      r@   Ú_calculate_breakpointz%EagerSeriesHist._calculate_breakpoint“  s>   € Ý4>¸sÅCÑ4HÔ4HÐQˆt×!Ò! ! Q¨¨a©Ñ0Ô0Ð0ÈcˆØ�A�B�BŒxˆr?   c                ó   — d S rR   r>   r}  s     r@   r|  zEagerSeriesHist._calculate_bins—  rZ   r?   c                ó   — d S rR   r>   ry  s     r@   rx  zEagerSeriesHist._calculate_hist˜  ru  r?   Nr  )rf   rZ  r	  rx   rP   r%   )rP   r   )
rg  rÁ   rh  rÁ   ri  r„   rf  rj  rP   r4   r  )rP   r]  )rq  rr  rP   r]  )r  r  rP   r%   )r  r„   rP   r%   )rq  rr  rP   r  )r  r„   rP   r4   )r  r  rP   r]  )r:   r;   r<   r=   r  rU   r  rc  rð   rl  rn  rp  rt  rz  r~  r�  r|  rx  r>   r?   r@   rI   rI   X  sA  € € € € € € Ø'Ð'Ð'Ñ'ØÐÐÑØ/Ð/Ð/Ñ/àð#ð #ð #ñ „Xð#ð ðð ð ñ „[ðð 1Ð0Ð0Ð0ð +1ðð ð ð ð ð ð +Ð*Ð*Ð*ðVð Vð Vð Vð
3ð 3ð 3ð 3ðð ð ð ðð ð ð ðð ð ð ð ?Ð>Ð>Ð>ð3ð 3ð 3ð 3ð 3ð 3r?   rI   )VÚ
__future__r   Útypingr   r   r   r   r   Ú!narwhals._compliant.any_namespacer	   r
   r   r   r   Únarwhals._compliant.columnr   Únarwhals._compliant.typingr   r   r   r   r   r   Únarwhals._translater   r   r   r   Únarwhals._typing_compatr   r   Únarwhals._utilsr   r   r   r   r   Úcollections.abcr    r!   r"   Útypesr#   ÚpandasÚpdÚpolarsÚplÚpyarrowÚpaÚtyping_extensionsr$   r%   r&   Únarwhals._compliant.dataframer'   Únarwhals._compliant.namespacer(   r)   r*   r+   Únarwhals.dtypesr,   Únarwhals.seriesr-   Únarwhals.typingr.   r/   r0   r1   r2   r3   r4   r5   r7   rA   Ú__all__rE   rF   rA  rK   rG   rH   rJ   rL   rM   rI   r>   r?   r@   ú<module>r›     s  ðØ "Ð "Ð "Ð "Ð "Ð "à AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ Aðð ð ð ð ð ð ð ð ð ð ð ð ð ð 7Ð 6Ð 6Ð 6Ð 6Ð 6ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð WÐ VÐ VÐ VÐ VÐ VÐ VÐ VÐ VÐ VÐ VÐ VØ 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð BØ<Ð<Ð<Ð<Ð<Ð<Ð<Ð<Ð<Ð<Ø Ð Ð Ð Ð Ð àÐÐÐØÐÐÐØÐÐÐØ>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>à@Ð@Ð@Ð@Ð@Ð@Ø<Ð<Ð<Ð<Ð<Ð<ØHÐHÐHÐHÐHÐHÐHÐHÐHÐHØ%Ð%Ð%Ð%Ð%Ð%Ø&Ð&Ð&Ð&Ð&Ð&ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ðBð Bð Bð Bð B�9˜g m°]Ð&BÔCñ Bô Bð Bð
 ˆg�m¨?ÀdÐKÑKÔK€ð
ð 
ð 
€ðuð uð uð uð uØÐ.Ô/ØØˆ}ÔØÐ&Ô'ØØˆ]Ôñuô uð uðpDMð DMð DMð DMð DM�/ -Ô0°(¸=Ô2Iñ DMô DMð DMðN3ð 3ð 3ð 3ð 3ØÐ(Ô)ØÐ"Ô#ØÐ Ð"2Ð2Ô3ñ3ô 3ð 3ð>(ð (ð (ð (ð (Ø�_Ð&6Ð6Ô7ØˆOÐ-Ð-Ô.ñ(ô (ð (ðð ð ð ð Ø�_Ð&6Ð6Ô7Ø�Ô!Øˆ_Ð.Ð.Ô/ñô ð ðð ð ð ð Ø�_Ð&6Ð6Ô7Ø�oÔ&Øˆ_Ð.Ð.Ô/ñô ð ðð ð ð ð Ø�\Ð#3Ð3Ô4Ø�,ÔØˆ\Ð+Ð+Ô,ñô ð ðð ð ð ð Ø�\Ð#3Ð3Ô4Ø�LÔ!Øˆ\Ð+Ð+Ô,ñô ð ðð ð ð ð Ø�_Ð&6Ð6Ô7Ø�OÔ$Øˆ_Ð.Ð.Ô/ñô ð ðB3ð B3ð B3ð B3ð B3�h˜}¨kÐ9Ô:ñ B3ô B3ð B3ð B3ð B3r?   