Ë
    u™ãj�î  ã                  óÔ  — d dl mZ d dlZd dlmZmZmZmZmZ d dl	Z	d dl
Zd dlmZ d dlmZ d dlmZ d dlmc mZ d dlmZ d dlmZ d d	lmZmZ d d
l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. d dl/Z0d dl/m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z< d dl=m>Z>m?Z?m@Z@mAZAmBZB d dlCmDZD d dlEmFZF d dlGmHZH d dlImJZJ erd dlKmLZLmMZM d dlNmOZO 	 	 	 dA	 	 	 	 	 	 	 	 	 	 	 	 	 dBd„ZPdCd„ZQ	 dD	 	 	 	 	 	 	 dEd„ZR	 	 	 	 	 	 dFd„ZS ed«      ej¨                  dddddddfej¨                  d œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dGd!„«       ZU	 dH	 	 	 	 	 	 	 	 	 dId"„ZV	 dJ	 	 	 	 	 	 	 	 	 dKd#„ZWdLd$„ZX	 	 	 dMej¨                  d œ	 	 	 	 	 	 	 	 	 	 	 	 	 dNd%„ZY	 dO	 	 	 	 	 	 	 dPd&„ZZ	 dQ	 	 	 	 	 	 	 dRd'„Z[	 dS	 	 	 	 	 	 	 dTd(„Z\	 dU	 	 	 	 	 	 	 dVd)„Z]	 	 	 dW	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dXd*„Z^	 	 	 	 	 	 dYdd,œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dZd-„Z_ ed«      ddej¨                  ej¨                  ej¨                  d.f	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d[d/„«       Z` ed«       eed0d¬1«      ddddej¨                  d+ddej¨                  dej¨                  ej¨                  d2fdd+d3œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d\d4„«       «       Za ed«       eed0d¬1«       eed5dd6¬7«      dddddd+ej¨                  d+dd+ej¨                  dej¨                  ej¨                  d8f	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d]d9„«       «       «       Zbd^d:„Zcd_d;„Zdd`d<„Zedad=„Zf	 	 	 	 	 	 dbd>„Zgdcd?„Zh	 dd	 	 	 	 	 ded@„Ziy)fé    )ÚannotationsN)ÚTYPE_CHECKINGÚAnyÚLiteralÚNoReturnÚcast)Úlib)Úis_matching_na)ÚSparseIndex)Úcompare_mismatched_resolutions)ÚPandas4Warning)Údeprecate_kwargÚ
set_module)Úfind_stack_level)Ú'construct_1d_object_array_from_listlike)Úis_boolÚis_float_dtypeÚis_integer_dtypeÚ	is_numberÚis_numeric_dtypeÚneeds_i8_conversion)ÚCategoricalDtypeÚDatetimeTZDtypeÚExtensionDtypeÚNumpyEADtype)Úarray_equivalent)ÚCategoricalÚCategoricalIndexÚ	DataFrameÚDatetimeIndexÚIndexÚIntervalDtypeÚIntervalIndexÚ
MultiIndexÚPeriodIndexÚ
RangeIndexÚSeriesÚTimedeltaIndex)ÚDatetimeArrayÚExtensionArrayÚIntervalArrayÚPeriodArrayÚTimedeltaArray)ÚDatetimeLikeArrayMixin)ÚStringDtype)Úsafe_sort_index)Úpprint_thing)Ú	ContainerÚIterable)ÚDtypeObjÚequivçñhãˆµøä>ç:Œ0âŽyE>c                ó  — t        | t        «      rt        | |fd|||dœ|¤Ž yt        | t        «      rt	        | |fd|||dœ|¤Ž yt        | t
        «      rt        | |fd|||dœ|¤Ž y|rut        | «      rt        |«      rn^t        | «      rt        |«      rnGt        | t        j                  «      st        |t        j                  «      rd}nd}t        | ||¬«       t        j                  | |ft        |«      ||dœ|¤Ž y)	at  
    Check that the left and right objects are approximately equal.

    By approximately equal, we refer to objects that are numbers or that
    contain numbers which may be equivalent to specific levels of precision.

    Parameters
    ----------
    left : object
    right : object
    check_dtype : bool or {'equiv'}, default 'equiv'
        Check dtype if both a and b are the same type. If 'equiv' is passed in,
        then `RangeIndex` and `Index` with int64 dtype are also considered
        equivalent when doing type checking.
    rtol : float, default 1e-5
        Relative tolerance. Only applied to numeric dtypes; values of other
        dtypes, such as interval, are always compared exactly.
    atol : float, default 1e-8
        Absolute tolerance. Only applied to numeric dtypes; values of other
        dtypes, such as interval, are always compared exactly.
    F)Úcheck_exactÚexactÚrtolÚatol)r9   Úcheck_dtyper;   r<   únumpy arrayÚInput©Úobj)r=   r;   r<   N)Ú
isinstancer!   Úassert_index_equalr'   Úassert_series_equalr   Úassert_frame_equalr   r   ÚnpÚndarrayÚassert_class_equalÚ_testingÚassert_almost_equalÚbool)ÚleftÚrightr=   r;   r<   ÚkwargsrA   s          úd/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/pandas/_testing/asserters.pyrJ   rJ   Q   s,  € ô: �$œÔÜØØð	
ð ØØØñ	
ð ó	
ô 
�Dœ&Ô	!ÜØØð	
ð Ø#ØØñ	
ð ó	
ô 
�Dœ)Ô	$ÜØØð	
ð Ø#ØØñ	
ð ó	
ñ Ü˜Œ¤9¨UÔ#3àÜ˜”¤7¨5¤>àä˜d¤B§J¡JÔ/´:¸eÄRÇZÁZÔ3PØ'‘Cà!�CÜ" 4¨°CÕ8ô 	×$Ñ$Ø�%ð	
Ü%)¨+Ó%6¸TÈñ	
ØPVó	
ó    c           	     óÀ   — |j                   }t        | |«      st        |› d|› dt        | «      › d�«      ‚t        ||«      st        |› d|› dt        |«      › d�«      ‚y)aª  
    Helper method for our assert_* methods that ensures that
    the two objects being compared have the right type before
    proceeding with the comparison.

    Parameters
    ----------
    left : The first object being compared.
    right : The second object being compared.
    cls : The class type to check against.

    Raises
    ------
    AssertionError : Either `left` or `right` is not an instance of `cls`.
    z Expected type z, found z insteadN)Ú__name__rB   ÚAssertionErrorÚtype)rL   rM   ÚclsÚcls_names       rO   Ú_check_isinstancerW   ¥   sv   € ð  �|‰|€Hä�d˜CÔ ÜØˆj˜¨ u¨H´T¸$³Z°LÀÐIó
ð 	
ô �e˜SÔ!ÜØˆj˜¨ u¨H´T¸%³[°MÀÐJó
ð 	
ð "rP   Tc                óV   — t        | |t        «       t        j                  | ||¬«       y )N)Úcompare_keys)rW   ÚdictrI   Úassert_dict_equal)rL   rM   rY   s      rO   r[   r[   Á   s"   € ô �d˜E¤4Ô(Ü×Ñ˜t U¸ÖFrP   c                óX   — |t         j                  u rt        | t        t        f«      ry|S )aw  
    Resolve an unspecified check_freq for a Series/DataFrame axis.

    The hard freq check has long applied only to a flat DatetimeIndex or
    TimedeltaIndex, so preserve that. Freqs nested inside a MultiIndex level or
    inside Categorical categories were not checked before, so those go through
    the deprecation warning in assert_index_equal. GH#51920, GH#66761
    T)r	   Ú
no_defaultrB   r    r(   )ÚindexÚ
check_freqs     rO   Ú_resolve_check_freqr`   È   s,   € ð ”S—^‘^Ñ#¬
Ø”œ~Ð.ô)ð ØÐrP   zpandas.testing)r_   c
               ó>
  ‡‡‡
— d}|	€t        | t        «      rdnd}	d"d„}‰t        j                  u r/ || |«      r$t	        j
                  dt        t        «       ¬«       dŠd#d$ˆˆ
ˆfd	„}t        | |t        «        || ||	¬
«       | j                  |j                  k7  r5|	› d�}| j                  › d| › �}|j                  › d|› �}t        |	|||«       t        | «      t        |«      k7  r3|	› d�}t        | «      › d| › �}t        |«      › d|› �}t        |	|||«       |st        | «      } t        |«      }t        | t        «      rÁt        d|«      }‰
t        j                  u rdn‰
}t        | j                  «      D ]…  }|	› d|› d�}	 t!        | j"                  |   |j"                  |   ‰||‰||||¬«
       t%        | j&                  |   |j&                  |   «        || j"                  |   |j"                  |   |¬
«       Œ‡ �n|rÄ‰rÂ| j-                  |«      sí	 | j.                  |j.                  k7  }t        t2        j4                  «      st        d|«      j7                  d«      }t3        j8                  |j;                  t<        «      «      dz  t        | «      z  }|	› dt3        j>                  |d«      › d�}t        |	|| |«       n<tA        ‰«      }tC        jD                  | j.                  |j.                  ||||	| |¬«       |rtG        d| ||	¬
«       t        | tH        «      st        |tH        «      rtG        d| ||	¬
«       t        | tJ        «      st        |tJ        «      r4tM        t        d| j.                  «      t        d|j.                  «      «       |r¨t        | tN        tP        f«      r’t        |tN        tP        f«      r|‰
t        j                  u rY| jR                  |jR                  k7  rQt	        j
                  d| jR                  ›d|jR                  ›d�t        t        «       ¬«       n‰
rtG        d| ||	¬
«       ‰rpt        | jT                  tV        «      st        |jT                  tV        «      r;tY        t        d| j.                  «      t        d|j.                  «      ‰
|	› d �¬!«       yyy# t(        $ r; | j+                  |«      }|j+                  |«      }t!        ||‰||‰‰
|||¬«
       Y �Œw xY w# t0        $ r t        |	d| |«       Y �Œåw xY w)%aÔ
  
    Check that left and right Index are equal.

    This function compares two Index objects and raises an ``AssertionError``
    if they are not equal. It provides fine-grained control over which
    attributes to check, including dtype, names, and categorical properties.

    Parameters
    ----------
    left : Index
        The first index to compare.
    right : Index
        The second index to compare.
    exact : bool or {'equiv'}, default 'equiv'
        Whether to check the Index class, dtype and inferred_type
        are identical. If 'equiv', then RangeIndex can be substituted for
        Index with an int64 dtype as well.

        .. deprecated:: 3.1.0
            The default value of 'equiv' has been deprecated and will be changed to
            True in the future.

    check_names : bool, default True
        Whether to check the names attribute.
    check_exact : bool, default True
        Whether to compare number exactly.
    check_categorical : bool, default True
        Whether to compare internal Categorical exactly.
    check_order : bool, default True
        Whether to compare the order of index entries as well as their values.
        If True, both indexes must contain the same elements, in the same order.
        If False, both indexes must contain the same elements, but in any order.
    rtol : float, default 1e-5
        Relative tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    atol : float, default 1e-8
        Absolute tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    obj : str, default 'Index' or 'MultiIndex'
        Specify object name being compared, internally used to show appropriate
        assertion message.
    check_freq : bool, default True
        Whether to check the ``freq`` attribute on a DatetimeIndex or
        TimedeltaIndex. This check is skipped when ``check_order=False``,
        as sorting does not preserve ``freq``.

        .. versionadded:: 3.1.0

        .. deprecated:: 3.1.0
            Currently a ``freq`` mismatch only warns; in a future version
            ``check_freq=True`` will be the default and mismatches will
            raise. Pass ``check_freq`` explicitly to silence the warning.

    See Also
    --------
    testing.assert_series_equal : Check that two Series are equal.
    testing.assert_frame_equal : Check that two DataFrames are equal.

    Examples
    --------
    >>> from pandas import testing as tm
    >>> a = pd.Index([1, 2, 3])
    >>> b = pd.Index([1, 2, 3])
    >>> tm.assert_index_equal(a, b)
    TNr$   r!   c                ó6  — t        | t        «      xr: t        |t        «      xr( t        |t        «       xr t        |j                  «      xsL t        |t        «      xr: t        | t        «      xr( t        | t        «       xr t        | j                  «      S ©N)rB   r&   r!   r   Údtype)rL   rM   s     rO   Ú_check_rangeindex_index_intz7assert_index_equal.<locals>._check_rangeindex_index_int1  sŠ   € ä�tœZÓ(ò .Ü˜5¤%Ó(ò.ä˜u¤jÓ1Ð1ò.ô ! §¡Ó-ò	

ô �uœjÓ)ò -Ü˜4¤Ó'ò-ä˜t¤ZÓ0Ð0ò-ô ! §¡Ó,ð
	
rP   zºThe default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning)Ú
stacklevelr5   c                ó`  •— ‰sy t        | |‰|¬«       t        d| ||¬«       t        | j                  t        «      rct        |j                  t        «      rI‰rFt        d| ||¬«       t        t        d| «      j                  t        d|«      j                  ‰‰¬«       y t        d| ||¬«       y )N)r:   rA   Úinferred_typer@   rd   r   )r:   r_   )rH   Úassert_attr_equalrB   rd   r   rC   r   Ú
categories)rL   rM   rA   Úcheck_categoricalr_   r:   s      €€€rO   Ú_check_typesz(assert_index_equal.<locals>._check_typesI  s�   ø€ ÙØä˜4 ¨e¸Õ=Ü˜/¨4°¸CÕ@ô �d—j‘jÔ"2Ô3¼
Ø�K‰KÔ)ô9
ñ !Ü! '¨4°¸CÕ@Ü"ÜÐ+¨TÓ2×=Ñ=ÜÐ+¨UÓ3×>Ñ>ØØ)õ	ð ä˜' 4¨°CÖ8rP   r@   z levels are differentú, z length are differentz level [ú])r:   Úcheck_namesr9   rk   r_   r;   r<   rA   z>types are not comparable (non-matching categorical categories)r*   ç      Y@ú values are different (é   ú %))r;   r<   r=   rA   ÚlobjÚrobjÚnamesrd   r+   z_assert_index_equal will check the 'freq' attribute by default in a future version; these freqs z and zO do not match. Pass check_freq=True or check_freq=False to silence this warningÚfreqr   ú	 category)r_   rA   )rL   r!   rM   r!   ÚreturnrK   )r!   )rL   r!   rM   r!   rA   Ústrry   ÚNone)-rB   r$   r	   r]   ÚwarningsÚwarnr   r   rW   r!   ÚnlevelsÚraise_assert_detailÚlenr0   r   ÚrangerC   ÚlevelsÚassert_numpy_array_equalÚcodesrS   Úget_level_valuesÚequalsÚ_valuesÚ	TypeErrorrF   rG   ÚfillnaÚsumÚastypeÚintÚroundrK   rI   rJ   ri   r%   r#   Úassert_interval_array_equalr    r(   rw   rd   r   Úassert_categorical_equal)rL   rM   r:   ro   r9   rk   Úcheck_orderr;   r<   rA   r_   Ú__tracebackhide__re   rl   Úmsg1Úmsg2Úmsg3Úlevels_check_freqÚlevelrt   ÚllevelÚrlevelÚmismatchÚdiffÚmsgÚ
exact_bools     `  `    `               rO   rC   rC   Ú   sÞ  ú€ ðd Ðà
€{Ü(¨¬zÔ:‰lÀˆó
ð ”—‘ÑÙ& t¨UÔ3Ü�M‰MðDô Ü+Ó-õð ˆ÷9ð 9ô0 �d˜E¤5Ô)ñ ��u #Õ&ð ‡|�|�u—}‘}Ò$Ø�Ð+Ð,ˆØ—,‘,�˜r $ Ð(ˆØ—-‘-�  5 'Ð*ˆÜ˜C  t¨TÔ2ô ˆ4ƒy”C˜“JÒØ�Ð+Ð,ˆÜ�d“)�˜B˜t˜fÐ%ˆÜ�e“*�˜R ˜wÐ'ˆÜ˜C  t¨TÔ2ñ Ü˜tÓ$ˆÜ Ó&ˆô �$œ
Ô#Ü�\ 5Ó)ˆð %/´#·.±.Ñ$@™DÀjÐä˜4Ÿ<™<Ó(ò "	LˆEØ�U˜( 5 '¨Ð+ˆDðä"Ø—K‘K Ñ&Ø—L‘L Ñ'ØØ +Ø +Ø&7Ø0ØØØõô )¨¯©°EÑ):¸E¿K¹KÈÑ<NÔOñ$ ˜Ÿ™ UÑ+¨U¯\©\¸%Ñ-@ÀdÖKòE"	LñJ 
Ñ*Ø�{‰{˜5Ô!ðØŸ<™<¨5¯=©=Ñ8�ô ˜h¬¯
©
Ô3ÜÐ 0°(Ó;×BÑBÀ4ÓH�ä—6‘6˜(Ÿ/™/¬#Ó.Ó/°%Ñ7¼#¸d»)ÑCˆDØ�EÐ0´·±¸$ÀÓ1BÐ0CÀ3ÐGˆCÜ  S¨$°Õ6ô ˜%“[ˆ
Ü×$Ñ$Ø�L‰LØ�M‰MØØØ"ØØØõ		
ñ Ü˜' 4¨°CÕ8Ü�$œÔ$¬
°5¼+Ô(FÜ˜' 4¨°CÕ8Ü�$œÔ&¬*°U¼MÔ*JÜ#Ü� $§,¡,Ó/Ü� %§-¡-Ó0ô	
ñ 	Ü�tœm¬^Ð<Ô=Ü�uœ}¬nÐ=Ô>àœŸ™Ñ'Ø�y‰y˜EŸJ™JÒ&Ü—‘ð@Ø@DÇ	Á	¸}ð MØ Ÿ:™:˜.ð )BðBô #Ü/Ó1öñ Ü˜f d¨E°sÕ;áÜ�d—j‘jÔ"2Ô3´zØ�K‰KÔ)ô8
ô %Ü�] D§L¡LÓ1Ü�] E§M¡MÓ2Ø%Ø�e˜9Ð%ö	ð8
ð øôk "ò Ø×.Ñ.¨uÓ5�Ø×/Ñ/°Ó6�ä"ØØØØ +Ø +Ø&7Ø)ØØØ÷ð ð	ûô4 ò Ü#ØØTØØ÷	ðús&   Æ	AR:ÈT Ò:A S>Ó=S>ÔTÔTc                ó²   — d}dd„}dd„}t        | «      t        |«      k(  ry|dk(  r || «      r	 ||«      ry|› d�}t        || || «       ||«      «       y)	z#
    Checks classes are equal.
    Tc                óP   — t        | t        «      r| S t        | «      j                  S rc   )rB   r!   rT   rR   )Úxs    rO   Ú
repr_classz&assert_class_equal.<locals>.repr_classþ  s!   € Ü�aœÔàˆHä�A‹w×ÑÐrP   c                óH   — t        | «      t        u xs t        | t        «      S )zµClasses that are a RangeIndex (sub-)instance or exactly an `Index` .

        This only checks class equivalence. There is a separate check that the
        dtype is int64.
        )rT   r!   rB   r&   )Úidxs    rO   Úis_class_equivz*assert_class_equal.<locals>.is_class_equiv  s   € ô �C‹yœEÐ!Ò@¤Z°´ZÓ%@Ð@rP   Nr5   z classes are different)rŸ   r   ry   r   )r¢   r!   ry   rK   )rT   r   )rL   rM   r:   rA   r‘   r    r£   r›   s           rO   rH   rH   ö  si   € ð Ðó óAô ˆDƒz”T˜%“[Ò Øà�ÒÙ˜$Ô¡N°5Ô$9ØàˆEÐ'Ð
(€CÜ˜˜S¡*¨TÓ"2±J¸uÓ4EÕFrP   c                ó  — d}t        || «      }t        || «      }||u st        ||«      ry	 ||k(  }|t        j                  u |t        j                  u z  rd}n t        |t        «      s|j                  «       }|sMt        |t        t        f«      r7t        |«      t        |«      u r!	 t        t        |«      t        |«      d¬«      }|sd| › d�}t        ||||«       y# t        $ r d}Y Œ»w xY w# t        $ r d}Y Œ5w xY w)aO  
    Check attributes are equal. Both objects must have attribute.

    Parameters
    ----------
    attr : str
        Attribute name being compared.
    left : object
    right : object
    obj : str, default 'Attributes'
        Specify object name being compared, internally used to show appropriate
        assertion message
    TNF©Ú
strict_nanzAttribute "z" are different)Úgetattrr
   rˆ   ÚpdÚNArB   rK   ÚallÚtupleÚlistrT   r   r   r   )	ÚattrrL   rM   rA   r‘   Ú	left_attrÚ
right_attrÚresultr›   s	            rO   ri   ri     s  € ð  Ðä˜˜dÓ#€IÜ˜ Ó%€Jà�JÑ¤.°¸JÔ"GàðØ˜jÑ(ˆð 	”R—U‘UÐ˜z¬R¯U©UÐ2Ò3Ø‰Ü˜¤Ô%Ø—‘“ˆñ Ü�y¤5¬$ -Ô0Ü�‹Oœt JÓ/Ñ/ð	Ü%Ü7¸	ÓBÜ7¸
ÓCØôˆFñ Ø˜D˜6 Ð1ˆÜ˜C  i°Ô<Øøô7 ò àŠðûô* ò 	ØŠFð	ús#   ­C  Â) C1 Ã C.Ã-C.Ã1C?Ã>C?c                ó  — t        | t        t        f«      r| j                  } t        | t        j
                  «      r3t        | t	        j                  t	        j                  | «      «      «       yt        | | | j                  «          «       y)z#Assert that the sequence is sorted.N)rB   r!   r'   r‡   rF   rG   rƒ   ÚsortÚarrayÚassert_extension_array_equalÚargsort)Úseqs    rO   Úassert_is_sortedr·   Q  sW   € ä�#œœv�Ô'Ø�k‰kˆä�#”r—z‘zÔ"Ü  ¤b§g¡g¬b¯h©h°s«mÓ&<Õ=ä$ S¨#¨c¯k©k«mÑ*<Õ=rP   c               ó¢  — t        | |t        «       t        | j                  t        «      st        |j                  t        «      rd}nd}|rNt        | j                  |j                  |› d�||¬«       t        | j                  |j                  ||› d�¬«       n	 | j                  j                  «       }|j                  j                  «       }t        |||› d�||¬«       t        | j                  t        «      |j                  t        «      |› d�¬«       t        d	| ||¬«       y
# t        $ r | j                  |j                  }}Y Œ}w xY w)a$  
    Test that Categoricals are equivalent.

    Parameters
    ----------
    left : Categorical
    right : Categorical
    check_dtype : bool, default True
        Check that integer dtype of the codes are the same.
    check_category_order : bool, default True
        Whether the order of the categories should be compared, which
        implies identical integer codes.  If False, only the resulting
        values are compared.  The ordered attribute is
        checked regardless.
    obj : str, default 'Categorical'
        Specify object name being compared, internally used to show appropriate
        assertion message.
    check_freq : bool, default True
        Whether to check the ``freq`` attribute of DatetimeIndex or
        TimedeltaIndex categories.

        .. versionadded:: 3.1.0

        .. deprecated:: 3.1.0
            Currently a ``freq`` mismatch only warns; in a future version
            ``check_freq=True`` will be the default and mismatches will
            raise. Pass ``check_freq`` explicitly to silence the warning.
    r5   Tz.categories)rA   r:   r_   z.codes)r=   rA   z.valuesr@   ÚorderedN)rW   r   rB   rj   r&   rC   rƒ   r„   Úsort_valuesrˆ   r‹   Úobjectri   )	rL   rM   r=   Úcheck_category_orderrA   r_   r:   ÚlcÚrcs	            rO   r�   r�   \  s7  € ôJ �d˜E¤;Ô/ô �$—/‘/¤:Ô.´*Ø×Ñœ*ô3ð ‰ð ˆáÜØ�O‰OØ×ÑØ�%�{Ð#ØØ!õ	
ô 	!Ø�J‰J˜Ÿ™°ÀSÀEÈÀ.ö	
ð	7Ø—‘×,Ñ,Ó.ˆBØ×!Ñ!×-Ñ-Ó/ˆBô 	ØØØ�%�{Ð#ØØ!õ	
ô 	!Ø�K‰KœÓØ�L‰LœÓ Ø�%�w�õ	
ô �i  u°#Ö6øô) ò 	7à—_‘_ e×&6Ñ&6�ŠBð	7ús   Â4D* Ä*!EÅEc                óØ   — t        | |t        «       t        | j                  |j                  |› d�¬«       t        | j                  |j                  |› d�¬«       t        d| ||¬«       y)a-  
    Test that two IntervalArrays are equivalent.

    Parameters
    ----------
    left, right : IntervalArray
        The IntervalArrays to compare.
    obj : str, default 'IntervalArray'
        Specify object name being compared, internally used to show appropriate
        assertion message
    z.leftr@   z.rightÚclosedN)rW   r+   Úassert_equalÚ_leftÚ_rightri   ©rL   rM   rA   s      rO   rŽ   rŽ   ²  sR   € ô  �d˜E¤=Ô1ä�—‘˜UŸ[™[°°°U¨mÕ<Ü�—‘˜eŸl™l°3°%°v°Õ?ä�h  e°Ö5rP   c                óŽ   — t        | |t        «       t        | j                  |j                  |› d�¬«       t	        d| ||¬«       y )Nú	._ndarrayr@   rd   )rW   r,   rƒ   Ú_ndarrayri   rÄ   s      rO   Úassert_period_array_equalrÈ   Ê  s9   € ô �d˜E¤;Ô/ä˜TŸ]™]¨E¯N©NÀ3À%ÀyÐ@QÕRÜ�g˜t U°Ö4rP   c                ó’   — d}t        | |t        «       t        | j                  |j                  |› d�¬«       t	        d| ||¬«       y )NTrÆ   r@   Útz)rW   r)   rƒ   rÇ   ri   ©rL   rM   rA   r‘   s       rO   Úassert_datetime_array_equalrÌ   Ó  s?   € ð ÐÜ�d˜E¤=Ô1ä˜TŸ]™]¨E¯N©NÀ3À%ÀyÐ@QÕRÜ�d˜D %¨SÖ1rP   c                ót   — d}t        | |t        «       t        | j                  |j                  |› d�¬«       y )NTrÆ   r@   )rW   r-   rƒ   rÇ   rË   s       rO   Úassert_timedelta_array_equalrÎ   Ý  s1   € ð ÐÜ�d˜E¤>Ô2Ü˜TŸ]™]¨E¯N©NÀ3À%ÀyÐ@QÖRrP   c                ó8  — d}| › d|› �}t        |t        «      rt        j                  |«      }t        |t        j                  «      r|dt        |«      › �z  }t        |t        j                  «      rt        |«      }n&t        |t        t        t        f«      rt        |«      }t        |t        j                  «      rt        |«      }n&t        |t        t        t        f«      rt        |«      }|d|› d|› �z  }|�|d|› �z  }|�|d|› �z  }t        |«      ‚)NTz are different

z

[index]: z

[left]:  z

[right]: z	
[diff]: ú
)rB   r!   rF   ÚasarrayrG   r1   r   r/   r   ÚreprrS   )	rA   ÚmessagerL   rM   rš   Ú
first_diffÚindex_valuesr‘   r›   s	            rO   r   r   å  s#  € ð Ðàˆeð à€	ð€Cô �,¤Ô&Ü—z‘z ,Ó/ˆä�,¤§
¡
Ô+Ø�œ\¨,Ó7Ð8Ð9Ñ9ˆä�$œŸ
™
Ô#Ü˜DÓ!‰Ü	�DÔ+¬[¼,ÐGÔ	HÜ�D‹zˆä�%œŸ™Ô$Ü˜UÓ#‰Ü	�EÔ,¬k¼<ÐHÔ	IÜ�U“ˆàð 
Ø
ˆð 
Ø
ˆðñ €Cð ÐØ�˜D˜6Ð"Ñ"ˆàÐØ��J�<Ð Ñ ˆä
˜Ó
ÐrP   F)Ú	class_objc               óÄ  ‡‡‡— d}	t        | ||xs ‰¬«       t        | |t        j                  «       dd„}
 |
| «      } |
|«      }|dk(  r||ur)t	        |›d|›�«      ‚|dk(  r||u rt	        |›d|›�«      ‚dˆˆˆfd„}t        | |‰¬	«      s
 || ||«       |rFt        | t        j                  «      r+t        |t        j                  «      rt        d
| |‰¬«       yyyy)aÆ  
    Check that 'np.ndarray' is equivalent.

    Parameters
    ----------
    left, right : numpy.ndarray or iterable
        The two arrays to be compared.
    strict_nan : bool, default False
        If True, consider NaN and None to be different.
    check_dtype : bool, default True
        Check dtype if both a and b are np.ndarray.
    err_msg : str, default None
        If provided, used as assertion message.
    check_same : None|'copy'|'same', default None
        Ensure left and right refer/do not refer to the same memory area.
    obj : str, default 'numpy array'
        Specify object name being compared, internally used to show appropriate
        assertion message.
    index_values : Index | numpy.ndarray, default None
        optional index (shared by both left and right), used in output.
    class_obj : str, default None
        Specify object name for class comparison, internally used to show
        appropriate assertion message.
    Tr@   c                ó8   — t        | dd «      �| j                  S | S )NÚbase)r§   rÙ   r@   s    rO   Ú	_get_basez+assert_numpy_array_equal.<locals>._get_base=  s   € Ü" 3¨°Ó5ÐAˆs�x‰xÐJÀsÐJrP   Úsamez is not Úcopyz is c                ó¦  •— |€Ä| j                   |j                   k7  r%t        ‰‰› d�| j                   |j                   «       d}t        | j                  «       |j                  «       d¬«      D ]  \  }}t	        ||‰	¬«      rŒ|dz  }Œ |dz  | j
                  z  }‰› dt        j                  |d	«      › d
�}t        ‰|| |‰¬«       t        |«      ‚)Nz shapes are differentg        T©Ústrictr¥   é   rp   rq   rr   rs   )rÕ   )	Úshaper   ÚzipÚravelr   ÚsizerF   r�   rS   )
rL   rM   Úerr_msgrš   Úleft_valÚ	right_valr›   rÕ   rA   r¦   s
          €€€rO   Ú_raisez(assert_numpy_array_equal.<locals>._raiseJ  sÌ   ø€ Øˆ?Ø�z‰z˜UŸ[™[Ò(Ü#Ø˜C˜5Ð 5Ð6¸¿
¹
ÀEÇKÁKôð ˆDä'*¨4¯:©:«<¸¿¹»ÈtÔ'Tò Ñ#�˜)ä'¨°)È
ÖSØ˜A‘I‘Dðð
 ˜%‘< $§)¡)Ñ+ˆDØ�EÐ0´·±¸$ÀÓ1BÐ0CÀ3ÐGˆCÜ  S¨$°ÀLÕQä˜WÓ%Ð%rP   r¥   rd   N)rA   ú
np.ndarrayry   r   )rL   ré   rM   ré   rå   ú
str | Nonery   r   )rH   rW   rF   rG   rS   r   rB   ri   )rL   rM   r¦   r=   rå   Ú
check_samerA   rÕ   rÖ   r‘   rÚ   Ú	left_baseÚ
right_baserè   s     `   ``      rO   rƒ   rƒ     sï   ú€ ðH Ðô �t˜U¨	Ò(8°SÕ9ä�d˜E¤2§:¡:Ô.óKñ ˜$“€IÙ˜5Ó!€Jà�VÒØ˜JÑ&Ü  I =°¸¸Ð!GÓHÐHØ	�vÒ	Ø˜
Ñ"Ü  I =°°Z°NÐ!CÓDÐD÷&ô* ˜D %°JÕ?Ùˆt�U˜GÔ$áÜ�dœBŸJ™JÔ'¬J°u¼b¿j¹jÔ,IÜ˜g t¨U¸Ö<ð -JÐ'ð rP   r*   c           	     ó¶	  — |t         j                  u r�|t         j                  u ro|t         j                  u r]t        | j                  «      xr t	        | j                  «       xs- t        |j                  «      xr t	        |j                  «       }n|t         j                  u rd}|t         j                  ur|nd}|t         j                  ur|nd}t        | t        «      sJ d«       ‚t        |t        «      sJ d«       ‚|rt        d| |d|› �¬«       t        | t        «      �r t        |t        «      �r�t        |«      t        | «      k(  �rw|�s*| j                  j                  d	v �rt        | j                  t        j                  «      s!t        d
| j                  «      j                  }n"t        j                  | j                  «      d   }t        |j                  t        j                  «      s!t        d
|j                  «      j                  }	n"t        j                  |j                  «      d   }	||	k7  r>t        | j                   |j                   t"        j$                  «      j'                  «       ryt)        t        j*                  | j,                  «      t        j*                  |j,                  «      ||¬«       yt        j*                  | j/                  «       «      }
t        j*                  |j/                  «       «      }t)        |
||› d�|¬«       t        | j                  t0        «      r‰| j                  j2                  dk(  rp| j                  j4                  t        j6                  u rJt        j&                  | j                   |
   D �cg c]  }t        j8                  |«      ‘Œ c}«      sJ d«       ‚t        |j                  t0        «      r‰|j                  j2                  dk(  rp|j                  j4                  t        j6                  u rJt        j&                  |j                   |   D �cg c]  }t        j8                  |«      ‘Œ c}«      sJ d«       ‚| |
    j;                  t<        ¬«      }||    j;                  t<        ¬«      }|rt)        ||||¬«       yt?        j@                  ||tC        |«      ||||¬«       yc c}w c c}w )ai  
    Check that left and right ExtensionArrays are equal.

    This method compares two ``ExtensionArray`` instances for equality,
    including checks for missing values, the dtype of the arrays, and
    the exactness of the comparison (or tolerance when comparing floats).

    Parameters
    ----------
    left, right : ExtensionArray
        The two arrays to compare.
    check_dtype : bool, default True
        Whether to check if the ExtensionArray dtypes are identical.
    index_values : Index | numpy.ndarray, default None
        Optional index (shared by both left and right), used in output.
    check_exact : bool, default False
        Whether to compare number exactly.

        .. versionchanged:: 2.2.0

            Defaults to True for integer dtypes if none of
            ``check_exact``, ``rtol`` and ``atol`` are specified.
    rtol : float, default 1e-5
        Relative tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    atol : float, default 1e-8
        Absolute tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    obj : str, default 'ExtensionArray'
        Specify object name being compared, internally used to show appropriate
        assertion message.

        .. versionadded:: 2.0.0

    See Also
    --------
    testing.assert_series_equal : Check that left and right ``Series`` are equal.
    testing.assert_frame_equal : Check that left and right ``DataFrame`` are equal.
    testing.assert_index_equal : Check that left and right ``Index`` are equal.

    Notes
    -----
    Missing values are checked separately from valid values.
    A mask of missing values is computed for each and checked to match.
    The remaining all-valid values are cast to object dtype and checked.

    Examples
    --------
    >>> from pandas import testing as tm
    >>> a = pd.Series([1, 2, 3, 4])
    >>> b, c = a.array, a.array
    >>> tm.assert_extension_array_equal(b, c)
    Fr6   r7   zleft is not an ExtensionArrayzright is not an ExtensionArrayrd   úAttributes of r@   ÚmMr   r   N)rÕ   rA   z NA mask)rA   rÕ   Úpythonzwrong missing value sentinels)rd   )r=   r;   r<   rA   rÕ   )"r	   r]   r   rd   r   rB   r*   ri   r.   rT   ÚkindrF   r   ÚunitÚdatetime_datar   rÇ   ÚoperatorÚeqrª   rƒ   rÑ   Úasi8Úisnar/   ÚstorageÚna_valueÚnanÚisnanÚto_numpyr»   rI   rJ   rK   )rL   rM   r=   rÕ   r9   r;   r<   rA   Úl_unitÚr_unitÚleft_naÚright_naÚvalÚ
left_validÚright_valids                  rO   r´   r´   g  s¼  € ðF 	”s—~‘~Ñ%Ø”C—N‘NÑ"Ø”C—N‘NÑ"ô ˜TŸZ™ZÓ(ÒK´ÀÇ
Á
Ó1KÐ-KòQä˜uŸ{™{Ó+ÒO´NÀ5Ç;Á;Ó4OÐ0Oñ 	ð 
œŸ™Ñ	&ØˆàœsŸ~™~Ñ-‰4°6€DØœsŸ~™~Ñ-‰4°6€Dä�dœNÔ+ÐLÐ-LÓLÐ+Ü�eœ^Ô,ÐNÐ.NÓNÐ,ÙÜ˜' 4¨°nÀSÀEÐ4JÕKô 	�4Ô/Õ0Ü�uÔ4Õ5Ü�‹Kœ4 ›:Ó%ò ˜tŸz™zŸ™°$Ò6Ü˜dŸj™j¬"¯(©(Ô3ÜÐ/°·±Ó<×AÑA‘ä×)Ñ)¨$¯*©*Ó5°aÑ8�Ü˜eŸk™k¬2¯8©8Ô4ÜÐ/°·±Ó=×BÑB‘ä×)Ñ)¨%¯+©+Ó6°qÑ9�à˜&Ò Ü2Ø—M‘M 5§>¡>´8·;±;óç‘#“%ðð ô 	!Ü�J‰J�t—y‘yÓ!Ü�J‰J�u—z‘zÓ"Ø%Øõ		
ð 	ä�j‰j˜Ÿ™›Ó%€GÜ�z‰z˜%Ÿ*™*›,Ó'€HÜØ� #  hÐ/¸lõô 	�4—:‘:œ{Ô+Ø�J‰J×Ñ (Ò*Ø�J‰J×Ñ¤2§6¡6Ñ)ä�v‰vØ&*§m¡m°GÑ&<Ö=˜sŒR�X‰X�c�]Ò=ô
ð 	+à*ó	+ð 
ô 	�5—;‘;¤Ô,Ø�K‰K×Ñ 8Ò+Ø�K‰K× Ñ ¤B§F¡FÑ*ä�v‰vØ&+§n¡n°XÑ&>Ö?˜sŒR�X‰X�c�]Ò?ô
ð 	+à*ó	+ð 
ð �w�h‘×(Ñ(¬vÐ(Ó6€JØ˜˜	Ñ"×+Ñ+´&Ð+Ó9€KÙÜ Ø˜¨¸<ö	
ô 	×$Ñ$ØØÜ˜[Ó)ØØØØ%ö	
ùò% >ùò @s   ÎSÐ;SÚcheck_datetimelike_compat)Únew_arg_namer'   )Úcheck_indexÚ
check_likec               ó¨  — d}|t         j                  u �rI|t         j                  u �r6|t         j                  u �r#t        | j                  «      xr t	        | j                  «       xs- t        |j                  «      xr t	        |j                  «       }| j
                  j                  dk(  r| j
                  j                  gnt        d| j
                  «      j                  }|j
                  j                  dk(  r|j
                  j                  gnt        d|j
                  «      j                  }t        d„ |D «       «      xs t        d„ |D «       «      }n|t         j                  u rd}d}n|}|t         j                  ur|nd}|t         j                  ur|nd}|s|rt        d	«      ‚t        | |t        «       |rt        | ||¬
«       t        | «      t        |«      k7  rBt        | «      › d| j
                  › �}t        |«      › d|j
                  › �}t        |d||«       |r9| j                   |j                   k(  s J | j                   ›d|j                   ›�«       ‚|rBt#        | j
                  |j
                  ||||| t%        | j
                  |
«      |||› d�¬«       |r| j'                  |«      } |rIt)        | j                  t*        «      rt)        |j                  t*        «      r|snt-        d| |d|› �¬
«       |rÊ| j.                  }|j.                  }t)        |t0        «      r5t)        |t0        «      r%t3        |||| j
                  t5        |«      ¬«       �nz||}}t)        |t0        «      r|j7                  «       }t)        |t0        «      r|j7                  «       }t9        |||t5        |«      |› d�| j
                  ¬«       �n|rŠt;        | j                  «      st;        |j                  «      r`t=        | j.                  «      j?                  t=        |j.                  «      «      �s©d| j.                  › d|j.                  › d�}tA        |«      ‚t)        | j                  tB        «      rPt)        |j                  tB        «      r6tE        t        d| jF                  «      t        d|jF                  «      «       �nt)        | j                  t*        «      st)        |j                  t*        «      rNtI        jJ                  | j.                  |j.                  ||tM        |«      t5        |«      | j
                  ¬«       �n•t)        | j                  tN        «      rUt)        |j                  tN        «      r;t3        | j.                  |j.                  |||| j
                  t5        |«      ¬«       �n&tQ        | j                  |j                  «      s tQ        |j                  | j                  «      r8t3        | j.                  |j.                  || j
                  t5        |«      ¬«       n®t;        | j                  «      rMt;        |j                  «      r8t3        | j.                  |j.                  || j
                  t5        |«      ¬«       nLtI        jJ                  | j.                  |j.                  ||tM        |«      t5        |«      | j
                  ¬«       |rt-        d| ||¬
«       |r]t)        | j                  t*        «      st)        |j                  t*        «      r(tS        | j.                  |j.                  |› d�|	|
¬«       yyy)a¯  
    Check that left and right Series are equal.

    This function compares two Series and raises an ``AssertionError`` if they
    are not equal. It provides fine-grained control over which attributes to
    check, including dtype, index, names, and categorical properties.

    Parameters
    ----------
    left : Series
        First Series to compare.
    right : Series
        Second Series to compare.
    check_dtype : bool, default True
        Whether to check the Series dtype is identical.
    check_index_type : bool or {'equiv'}, default 'equiv'
        Whether to check the Index class, dtype and inferred_type
        are identical.
    check_series_type : bool, default True
         Whether to check the Series class is identical.
    check_names : bool, default True
        Whether to check the Series and Index names attribute.
    check_exact : bool, default False
        Whether to compare number exactly. This also applies when checking
        Index equivalence.

        .. versionchanged:: 2.2.0

            Defaults to True for integer dtypes if none of
            ``check_exact``, ``rtol`` and ``atol`` are specified.

        .. versionchanged:: 3.0.0

            check_exact for comparing the Indexes defaults to True by
            checking if an Index is of integer dtypes.

            When ``check_exact=True``, the comparison of object-dtype values
            containing nested :class:`numpy.ndarray` objects takes the type of
            the nested object into account. In particular, a nested
            ``numpy.ndarray`` is not considered equivalent to a Python
            ``list``, Python ``tuple``, or a pandas
            :class:`~pandas.api.extensions.ExtensionArray` merely because the
            contained values are the same.

    check_datetimelike_compat : bool, default False
        Compare datetime-like which is comparable ignoring dtype.

        .. deprecated:: 3.0

    check_categorical : bool, default True
        Whether to compare internal Categorical exactly.
    check_category_order : bool, default True
        Whether to compare category order of internal Categoricals.
    check_freq : bool, default True
        Whether to check the `freq` attribute on a DatetimeIndex or TimedeltaIndex.
        The index check is skipped if ``check_index=False`` or ``check_like=True``.

        .. deprecated:: 3.1.0
            The ``freq`` attribute of a :class:`DatetimeIndex`/
            :class:`TimedeltaIndex` MultiIndex level or Categorical categories is
            not yet checked by default; a mismatch currently only warns and will
            raise in a future version. Pass ``check_freq`` explicitly to silence
            the warning.
    check_flags : bool, default True
        Whether to check the `flags` attribute.
    rtol : float, default 1e-5
        Relative tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    atol : float, default 1e-8
        Absolute tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    obj : str, default 'Series'
        Specify object name being compared, internally used to show appropriate
        assertion message.
    check_index : bool, default True
        Whether to check index equivalence. If False, then compare only values.
    check_like : bool, default False
        If True, ignore the order of the index. Must be False if check_index is False.
        Note: same labels must be with the same data.

    See Also
    --------
    testing.assert_index_equal : Check that two Indexes are equal.
    testing.assert_frame_equal : Check that two DataFrames are equal.

    Examples
    --------
    >>> from pandas import testing as tm
    >>> a = pd.Series([1, 2, 3, 4])
    >>> b = pd.Series([1, 2, 3, 4])
    >>> tm.assert_series_equal(a, b)
    Trà   r$   c              3  ó8   K  — | ]  }|j                   d v –— Œ y­w©ÚiuN©rò   ©Ú.0rd   s     rO   ú	<genexpr>z&assert_series_equal.<locals>.<genexpr>Ž  s   è ø€ ò  
Ø#(ˆE�J‰J˜$Ôñ 
ùó   ‚c              3  ó8   K  — | ]  }|j                   d v –— Œ y­wr  r  r  s     rO   r  z&assert_series_equal.<locals>.<genexpr>�  s   è ø€ ÒD¨�—‘˜tÔ#ÑDùr  Fr6   r7   z0check_like must be False if check_index is Falser@   rm   zSeries length are differentú != ú.index©	r:   ro   r9   rk   r�   r_   r;   r<   rA   rd   rï   )r=   rÕ   rA   z values)r=   rA   rÖ   rÕ   z[datetimelike_compat=True] z is not equal to ú.r+   )r;   r<   r=   rA   rÕ   )r;   r<   r=   rÕ   rA   Únamerx   )rA   r¼   r_   N)*r	   r]   r   rd   r   r^   r~   r   Údtypesrª   Ú
ValueErrorrW   r'   rH   r€   r   ÚflagsrC   r`   Úreindex_likerB   r   ri   r‡   r*   r´   rz   rý   rƒ   r   r!   r†   rS   r"   rŽ   r³   rI   rJ   rK   r   Ú0is_extension_array_dtype_and_needs_i8_conversionr�   )rL   rM   r=   Úcheck_index_typeÚcheck_series_typero   r9   r  rk   r¼   r_   Úcheck_flagsr;   r<   rA   r  r  r‘   Úleft_index_dtypesÚright_index_dtypesÚcheck_exact_indexr’   r“   Úleft_valuesÚright_valuesÚlvÚrvr›   s                               rO   rD   rD     só  € ðh Ðà”s—~‘~Ò%Ø”C—N‘NÒ"Ø”C—N‘NÒ"ô ˜TŸZ™ZÓ(ÒK´ÀÇ
Á
Ó1KÐ-KòQä˜uŸ{™{Ó+ÒO´NÀ5Ç;Á;Ó4OÐ0Oð 	ð
 �z‰z×!Ñ! QÒ&ð �Z‰Z×ÑÑä�l D§J¡JÓ/×6Ñ6ð 	ð �{‰{×"Ñ" aÒ'ð �[‰[×ÑÑä�l E§K¡KÓ0×7Ñ7ð 	ô
  ñ  
Ø,=ô 
ó 
ò EäÑDÐ1CÔDÓDñ 	ð 
œŸ™Ñ	&ØˆØ!Ñà'ÐàœsŸ~™~Ñ-‰4°6€DØœsŸ~™~Ñ-‰4°6€Dá™:ÜÐKÓLÐLô �d˜E¤6Ô*áÜ˜4 ¨CÕ0ô ˆ4ƒy”C˜“JÒÜ�d“)�˜B˜tŸz™z˜lÐ+ˆÜ�e“*�˜R §¡˜}Ð-ˆÜ˜CÐ!>ÀÀdÔKáØ�z‰z˜UŸ[™[Ò(ÐN¨T¯Z©Z¨N¸$¸u¿{¹{¸oÐ*NÓNÐ(áäØ�J‰JØ�K‰KØ"Ø#Ø)Ø/Ø&˜Ü*¨4¯:©:°zÓBØØØ�%�v�õ	
ñ Ø× Ñ  Ó'ˆáô
 �t—z‘zÔ#3Ô4Ü˜5Ÿ;™;Ô(8Ô9Ù%àä˜g t¨U¸.ÈÈÐ8NÕOÙØ—l‘lˆØ—}‘}ˆä�k¤>Ô2´zØœ.ô8
ô )ØØØ'Ø!ŸZ™ZÜ˜“H÷ð ! ,�ˆBÜ˜+¤~Ô6Ø ×)Ñ)Ó+�Ü˜,¬Ô7Ø!×*Ñ*Ó,�Ü$ØØØ'Ü˜“HØ ˜E ˜/Ø!ŸZ™Z÷ñ 
#Ü˜DŸJ™JÔ'Ô+>¸u¿{¹{Ô+Kô �T—\‘\Ó"×)Ñ)¬%°·±Ó*>Õ?à-¨d¯l©l¨^ð <#Ø#(§=¡= /°ð4ð ô ! Ó%Ð%Ü	�D—J‘J¤Ô	.´:Ø�‰”]ô4ô 	$Ü� $§*¡*Ó-¬t°OÀUÇ[Á[Ó/Qö	
ô 
�D—J‘JÔ 0Ô	1´ZØ�‰Ô%ô6ô 	×$Ñ$Ø�L‰LØ�M‰MØØÜ˜[Ó)Ü�C“ØŸ™÷	
ô 
�D—J‘J¤Ô	/´JØ�‰”^ô5ô 	%Ø�L‰LØ�M‰MØØØ#ØŸ™Ü�C“÷	
ô 
:Ø�
‰
�E—K‘Kô
ä	9¸%¿+¹+ÀtÇzÁzÔ	RÜ$Ø�L‰LØ�M‰MØ#ØŸ™Ü�C“ö	
ô 
˜TŸZ™ZÔ	(Ô-@ÀÇÁÔ-Mä$Ø�L‰LØ�M‰MØ#ØŸ™Ü�C“ö	
ô 	×$Ñ$Ø�L‰LØ�M‰MØØÜ˜[Ó)Ü�C“ØŸ™õ	
ñ Ü˜& $¨°3Õ7áÜ�d—j‘jÔ"2Ô3´zØ�K‰KÔ)ô8
ô %Ø—‘Ø—‘Ø�e˜9Ð%Ø%9Ø%öð8
ð rP   Ú	by_blocksé   )r  rf   r   c                óR  — d}|t         j                  ur|nd}|t         j                  ur|nd}|t         j                  ur|nd}t        | |t        «       t	        | j
                  |«      }|rt        | t        |«      «      sJ ‚| j                  |j                  k7  r't        ||› d�| j                  ›|j                  ›«       |r9| j                  |j                  k(  s J | j                  ›d|j                  ›�«       ‚t        | j
                  |j
                  ||||
| ||||› d�¬«       t        | j                  |j                  ||||
| ||||› d	�¬«       |r| j                  |«      } |r�|j                  «       }| j                  «       }t        t!        t        |j#                  «       «      t        |j#                  «       «      z   «      «      D ]$  }||v sJ ‚||v sJ ‚t%        ||   ||   |||¬
«       Œ& yt'        | j                  «      D ]†  \  }}| j)                  |d¬«      }|j)                  |d¬«      }t+        j,                  «       5  t+        j.                  ddt0        ¬«       t3        |||||||	|
||› d|› d|› d�||dd¬«       ddd«       Œˆ y# 1 sw Y   Œ“xY w)a�  
    Check that left and right DataFrame are equal.

    This function is intended to compare two DataFrames and output any
    differences. It is mostly intended for use in unit tests.
    Additional parameters allow varying the strictness of the
    equality checks performed.

    Parameters
    ----------
    left : DataFrame
        First DataFrame to compare.
    right : DataFrame
        Second DataFrame to compare.
    check_dtype : bool, default True
        Whether to check the DataFrame dtype is identical.
    check_index_type : bool or {'equiv'}, default 'equiv'
        Whether to check the Index class, dtype and inferred_type
        are identical.
    check_column_type : bool or {'equiv'}, default 'equiv'
        Whether to check the columns class, dtype and inferred_type
        are identical. Is passed as the ``exact`` argument of
        :func:`assert_index_equal`.
    check_frame_type : bool, default True
        Whether to check the DataFrame class is identical.
    check_names : bool, default True
        Whether to check that the `names` attribute for both the `index`
        and `column` attributes of the DataFrame is identical.
    by_blocks : bool, default False
        Specify how to compare internal data. If False, compare by columns.
        If True, compare by blocks.

        .. deprecated:: 3.1
    check_exact : bool, default False
        Whether to compare number exactly. If False, the comparison uses the
        relative tolerance (``rtol``) and absolute tolerance (``atol``)
        parameters to determine if two values are considered close,
        according to the formula: ``|a - b| <= (atol + rtol * |b|)``.

        .. versionchanged:: 2.2.0

            Defaults to True for integer dtypes if none of
            ``check_exact``, ``rtol`` and ``atol`` are specified.

        .. versionchanged:: 3.0.0

            When ``check_exact=True``, the comparison of object-dtype values
            containing nested :class:`numpy.ndarray` objects takes the type of
            the nested object into account. In particular, a nested
            ``numpy.ndarray`` is not considered equivalent to a Python
            ``list``, Python ``tuple``, or a pandas
            :class:`~pandas.api.extensions.ExtensionArray` merely because the
            contained values are the same.

    check_datetimelike_compat : bool, default False
        Compare datetime-like which is comparable ignoring dtype.

        .. deprecated:: 3.0

    check_categorical : bool, default True
        Whether to compare internal Categorical exactly.
    check_like : bool, default False
        If True, ignore the order of index & columns.
        Note: index labels must match their respective rows
        (same as in columns) - same labels must be with the same data.
    check_freq : bool, default True
        Whether to check the `freq` attribute on a DatetimeIndex or TimedeltaIndex
        index or columns. The index and columns checks are skipped if
        ``check_like=True``.

        .. deprecated:: 3.1.0
            The ``freq`` attribute of :class:`DatetimeIndex`/:class:`TimedeltaIndex`
            columns, MultiIndex levels, and Categorical categories is not yet
            checked by default; a mismatch currently only warns and will raise in
            a future version. Pass ``check_freq`` explicitly to silence the
            warning.
    check_flags : bool, default True
        Whether to check the `flags` attribute.
    rtol : float, default 1e-5
        Relative tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    atol : float, default 1e-8
        Absolute tolerance. Only used when check_exact is False, and only
        applied to numeric dtypes; values of other dtypes, such as interval,
        are always compared exactly.
    obj : str, default 'DataFrame'
        Specify object name being compared, internally used to show appropriate
        assertion message.

    See Also
    --------
    assert_series_equal : Equivalent method for asserting Series equality.
    DataFrame.equals : Check DataFrame equality.

    Examples
    --------
    This example shows comparing two DataFrames that are equal
    but with columns of differing dtypes.

    >>> from pandas.testing import assert_frame_equal
    >>> df1 = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
    >>> df2 = pd.DataFrame({"a": [1, 2], "b": [3.0, 4.0]})

    df1 equals itself.

    >>> assert_frame_equal(df1, df1)

    df1 differs from df2 as column 'b' is of a different type.

    >>> assert_frame_equal(df1, df2)
    Traceback (most recent call last):
    ...
    AssertionError: Attributes of DataFrame.iloc[:, 1] (column name="b") are different

    Attribute "dtype" are different
    [left]:  int64
    [right]: float64

    Ignore differing dtypes in columns with check_dtype.

    >>> assert_frame_equal(df1, df2, check_dtype=False)
    Tr6   r7   Fz shape mismatchr  r  r  z.columns)r=   r_   rA   rà   )ÚaxisÚignorez'the 'check_datetimelike_compat' keyword)rÓ   Úcategoryz	.iloc[:, z] (column name="z"))r=   r  r9   ro   r  rk   r_   rA   r;   r<   r  r  N)r	   r]   rW   r   r`   r^   rB   rT   rá   r   r  rC   Úcolumnsr  Ú_to_dict_of_blocksr¬   ÚsetÚkeysrE   Ú	enumerateÚ_ixsr|   Úcatch_warningsÚfilterwarningsr   rD   )rL   rM   r=   r  Úcheck_column_typeÚcheck_frame_typero   r'  r9   r  rk   r  r_   r  r;   r<   rA   r‘   Ú_rtolÚ_atolÚ_check_exactÚ_check_freqÚrblocksÚlblocksrd   ÚiÚcolÚlcolÚrcols                                rO   rE   rE   E  sÊ  € ðd ÐØ¤§¡Ñ.‰D°F€EØ¤§¡Ñ.‰D°F€EØ"-´S·^±^Ñ"C‘;È€Lô �d˜E¤9Ô-ô
 & d§j¡j°*Ó=€KáÜ˜$¤ U£Ô,Ð,Ð,ð ‡z�z�U—[‘[Ò ÜØ�C�5˜Ð(¨T¯Z©Z¨NÀÇÁ¸ô	
ñ Ø�z‰z˜UŸ[™[Ò(ÐN¨T¯Z©Z¨N¸$¸u¿{¹{¸oÐ*NÓNÐ(ô Ø�
‰
Ø�‰ØØØ Ø+Ø"�NØØØØˆe�6ˆNõô Ø�‰Ø�‰ØØØ Ø+Ø"�NØØØØˆe�8Ðõñ Ø× Ñ  Ó'ˆñ Ø×*Ñ*Ó,ˆØ×)Ñ)Ó+ˆÜœ#œd 7§<¡<£>Ó2´T¸'¿,¹,».Ó5IÑIÓJÓKò 		ˆEØ˜GÑ#Ð#Ð#Ø˜GÑ#Ð#Ð#ÜØ˜‘Ø˜‘Ø'Ø%Øöñ		ô   §¡Ó-ò "	‰FˆAˆsð —9‘9˜Q Q�9Ó'ˆDØ—:‘:˜a a�:Ó(ˆDô ×(Ñ(Ó*ñ Ü×'Ñ'ØØEÜ+õô
 $ØØØ +Ø%5Ø +Ø +Ø.GØ&7ð  *Ø˜%˜y¨¨Ð+;¸C¸5ÀÐCØØØ %Ø %õ#÷ð ñ"	÷ð ús   É?JÊJ&	c                óì  — d}t        | t        «      r6t        | t        t        f«      r|j	                  dd«       t        | |fi |¤Ž yt        | t        «      rt        | |fi |¤Ž yt        | t        «      rt        | |fi |¤Ž yt        | t        «      rt        | |fi |¤Ž yt        | t        «      rt        | |fi |¤Ž yt        | t        «      rt        | |fi |¤Ž yt        | t         «      rt#        | |fi |¤Ž yt        | t$        «      rt'        | |fi |¤Ž yt        | t(        j*                  «      rt-        | |fi |¤Ž yt        | t.        «      r|i k(  sJ ‚| |k(  sJ ‚y|i k(  sJ ‚t1        | |«       y)aC  
    Wrapper for tm.assert_*_equal to dispatch to the appropriate test function.

    Parameters
    ----------
    left, right : Index, Series, DataFrame, ExtensionArray, or np.ndarray
        The two items to be compared.
    **kwargs
        All keyword arguments are passed through to the underlying assert method.
    Tr_   N)rB   r!   r    r(   Ú
setdefaultrC   r'   rD   r   rE   r+   rŽ   r,   rÈ   r)   rÌ   r-   rÎ   r*   r´   rF   rG   rƒ   rz   rJ   )rL   rM   rN   r‘   s       rO   rÁ   rÁ   H  sH  € ð Ðä�$œÔô �dœ]¬NÐ;Ô<Ø×Ñ˜l¨DÔ1Ü˜4 Ñ1¨&Ó1Ü	�Dœ&Ô	!Ü˜D %Ñ2¨6Ó2Ü	�Dœ)Ô	$Ü˜4 Ñ1¨&Ó1Ü	�Dœ-Ô	(Ü# D¨%Ñ:°6Ó:Ü	�Dœ+Ô	&Ü! $¨Ñ8°Ó8Ü	�Dœ-Ô	(Ü# D¨%Ñ:°6Ó:Ü	�Dœ.Ô	)Ü$ T¨5Ñ;°FÓ;Ü	�Dœ.Ô	)Ü$ T¨5Ñ;°FÓ;Ü	�Dœ"Ÿ*™*Ô	%Ü   uÑ7°Ó7Ü	�Dœ#Ô	Ø˜Š|Ðˆ|Ø�uŠ}Ð‰}à˜Š|Ðˆ|Ü˜D %Õ(rP   c                óô  — t        | |t        j                  j                  «       t	        | j
                  |j
                  «       t        | j                  t        «      sJ ‚t        |j                  t        «      sJ ‚| j                  }|j                  }|j                  |«      st        dd||«       n	 t        d| |«       t        d| |«       t	        | j                  «       |j                  «       «       y)zŒ
    Check that the left and right SparseArray are equal.

    Parameters
    ----------
    left : SparseArray
    right : SparseArray
    zSparseArray.indexzindex are not equalÚ
fill_valuerd   N)rW   r¨   ÚarraysÚSparseArrayrƒ   Ú	sp_valuesrB   Úsp_indexr   r†   r   ri   Úto_dense)rL   rM   Ú
left_indexÚright_indexs       rO   Úassert_sp_array_equalrL  t  s¼   € ô �d˜E¤2§9¡9×#8Ñ#8Ô9ä˜TŸ^™^¨U¯_©_Ô=ô �d—m‘m¤[Ô1Ð1Ð1Ü�e—n‘n¤kÔ2Ð2Ð2à—‘€JØ—.‘.€Kà×Ñ˜[Ô)ÜØÐ!6¸
ÀKõ	
ð
 	ä�l D¨%Ô0Ü�g˜t UÔ+Ü˜TŸ]™]›_¨e¯n©nÓ.>Õ?rP   c                ó.   — | D ]  }||v rŒJ d|›�«       ‚ y )NzDid not contain item: © )ÚiterableÚdicÚks      rO   Úassert_contains_allrR  •  s*   € Øò 8ˆØ�CŠxÐ7Ð1°!°Ð7Ó7ˆxñ8rP   c                ó–   — t        | |d¬«      D ]8  \  }}t        ||fi |¤Ž dt        |«      ›dt        |«      ›d�}||urŒ3J |«       ‚ y)zï
    iter1, iter2: iterables that produce elements
    comparable with assert_almost_equal

    Checks that the elements are equal, but not
    the same object. (Does not check that items
    in sequences are also not the same object)
    TrÞ   zExpected object z and object z8 to be different objects, but they were the same object.N)râ   rJ   rT   )Úiter1Úiter2Ú
eql_kwargsÚelem1Úelem2r›   s         rO   Úassert_copyrY  š  sk   € ô ˜E 5°Ô6ò '‰ˆˆuÜ˜E 5Ñ7¨JÒ7àœt E›{˜o¨\¼$¸u»+¸ð I@ð @ð 	ð ˜EÒ!Ð& 3Ó&Ð!ñ'rP   c                ó<   — t        | t        «      xr t        |«      S )z¸
    Checks that we have the combination of an ExtensionArraydtype and
    a dtype that should be converted to int64

    Returns
    -------
    bool

    Related to issue #37609
    )rB   r   r   )Ú
left_dtypeÚright_dtypes     rO   r  r  ¬  s   € ô �j¤.Ó1ÒVÔ6IÈ+Ó6VÐVrP   c                óž   — | j                   |   }t        | j                  |   |«       t        | j                  «      st        | |   |«       yy)z_
    Check that ser.iloc[i_slc] matches ser.loc[l_slc] and, if applicable,
    ser[l_slc].
    N)ÚilocrD   Úlocr   r^   )ÚserÚl_slcÚi_slcÚexpecteds       rO   Ú!assert_indexing_slices_equivalentrd  ¼  sB   € ð
 �x‰x˜‰€Hä˜Ÿ™ ™¨Ô1ä˜CŸI™IÔ&ä˜C ™J¨Õ1ð 'rP   c                ór   — | j                   D ](  }t        | |d«      }|€|€ŒJ ‚|t        ||d«      k(  rŒ(J ‚ y)z:
    Check that ._metadata attributes are equivalent.
    N)Ú	_metadatar§   )rL   rM   r­   r  s       rO   Úassert_metadata_equivalentrg  Ê  sK   € ð —‘ò 5ˆÜ�d˜D $Ó'ˆØˆ=Ø‘;Ð�;àœ' %¨¨tÓ4Ó4Ð4Ð4ñ5rP   )r5   r6   r7   )rL   r   rM   r   r=   úbool | Literal['equiv']r;   Úfloatr<   ri  rN   r   ry   r{   )rL   r   rM   r   rU   rT   ry   r{   )T)rL   údict[Any, Any]rM   rj  rY   rK   ry   r{   )r^   r!   r_   úbool | lib.NoDefaultry   rk  )rL   r!   rM   r!   r:   zbool | str | lib.NoDefaultro   rK   r9   rK   rk   rK   r�   rK   r;   ri  r<   ri  rA   rê   r_   rk  ry   r{   )Tr?   )
rL   r   rM   r   r:   z
bool | strrA   rz   ry   r{   )Ú
Attributes)
r­   rz   rL   r   rM   r   rA   rz   ry   r{   )r¶   z,Index | Series | np.ndarray | ExtensionArrayry   r{   )TTr   )rL   r   rM   r   r=   rK   r¼   rK   rA   rz   r_   rk  ry   r{   )r+   )rL   r+   rM   r+   rA   rz   ry   r{   )r,   )rL   r,   rM   r,   rA   rz   ry   r{   )r)   )rL   r)   rM   r)   rA   rz   ry   r{   )r-   )rL   r-   rM   r-   rA   rz   ry   r{   )NNN)rA   r   rÓ   rz   rL   r   rM   r   rš   r   rÔ   r   rÕ   úIndex | np.ndarray | Nonery   r   )FTNNr>   N)rL   r   rM   r   r¦   rK   r=   rh  rå   rê   rë   zLiteral['copy', 'same'] | NonerA   rz   rÕ   rm  rÖ   rê   ry   r{   )rL   r*   rM   r*   r=   rh  rÕ   rm  r9   rk  r;   úfloat | lib.NoDefaultr<   rn  rA   rz   ry   r{   )$rL   r'   rM   r'   r=   rh  r  rh  r  rK   ro   rK   r9   rk  r  rK   rk   rK   r¼   rK   r_   rk  r  rK   r;   rn  r<   rn  rA   rz   r  rK   r  rK   ry   r{   )$rL   r   rM   r   r=   rh  r  rh  r5  rh  r6  rK   ro   rK   r'  rK   r9   rk  r  rK   rk   rK   r  rK   r_   rk  r  rK   r;   rn  r<   rn  rA   rz   ry   r{   )rL   r   rM   r   rN   r   ry   r{   )rL   r   rM   r   ry   r{   )rO  úIterable[Any]rP  zContainer[Any]ry   r{   )rT  ro  rU  ro  rV  r   ry   r{   )r[  r4   r\  r4   ry   rK   )r`  r'   ra  Úslicerb  rp  ry   r{   rc   )rL   zDataFrame | SeriesrM   zDataFrame | Series | Nonery   r{   )jÚ
__future__r   rõ   Útypingr   r   r   r   r   r|   ÚnumpyrF   Úpandas._libsr	   Úpandas._libs.missingr
   Úpandas._libs.sparser   Úpandas._libs.testingÚ_libsÚtestingrI   Úpandas._libs.tslibs.np_datetimer   Úpandas.errorsr   Úpandas.util._decoratorsr   r   Úpandas.util._exceptionsr   Úpandas.core.dtypes.castr   Úpandas.core.dtypes.commonr   r   r   r   r   r   Úpandas.core.dtypes.dtypesr   r   r   r   Úpandas.core.dtypes.missingr   Úpandasr¨   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   Úpandas.core.arraysr)   r*   r+   r,   r-   Úpandas.core.arrays.datetimeliker.   Úpandas.core.arrays.string_r/   Úpandas.core.indexes.apir0   Úpandas.io.formats.printingr1   Úcollections.abcr2   r3   Úpandas._typingr4   rJ   rW   r[   r`   r]   rC   rH   ri   r·   r�   rŽ   rÈ   rÌ   rÎ   r   rƒ   r´   rD   rE   rÁ   rL  rR  rY  r  rd  rg  rN  rP   rO   ú<module>rŠ     s  ðÝ "ã ÷õ ó ã å Ý /Ý +ß 'Ð 'Ý JÝ (÷õ 5å K÷÷ ÷ó õ 8ã ÷÷ ÷ ó ÷õ õ CÝ 2Ý 3å 3á÷õ
 (ð ,3ØØðQ
Ø
ðQ
àðQ
ð )ðQ
ð ð	Q
ð
 ðQ
ð ðQ
ð 
óQ
óh
ð: GKðGØ
ðGØ!/ðGØ?CðGà	óGðØðØ2ðàóñ$ ÐÓð ),¯©ØØØ"ØØØØðXð (+§~¡~ñXØ
ðXàðXð &ðXð ð	Xð
 ðXð ðXð ðXð ðXð ðXð 
ðXð %ðXð 
òXó ðXðx AHðGØ
ðGØðGØ",ðGØ:=ðGà	óGðF 2>ð6Ø
ð6Øð6Ø!$ð6Ø+.ð6à	ó6ór>ð Ø!%ØðS7ð (+§~¡~ñS7Ø
ðS7àðS7ð ðS7ð ð	S7ð
 
ðS7ð %ðS7ð 
óS7ðr ð6Ø
ð6àð6ð 
ð6ð 
ó	6ð2 7Dð5Ø
ð5Ø)ð5Ø03ð5à	ó5ð ;Jð2Ø
ð2Ø -ð2Ø47ð2à	ó2ð =MðSØ
ðSØ!/ðSØ69ðSà	óSð ØØ.2ð)Ø	ð)àð)ð ð)ð ð	)ð
 ð)ð ð)ð ,ð)ð ó)ð^ Ø+/ØØ15ØØ.2ðS=ð !ñS=Ø
ðS=àðS=ð ðS=ð )ð	S=ð
 ðS=ð /ðS=ð 
ðS=ð ,ðS=ð ðS=ð 
óS=ñl ÐÓð ,0Ø.2Ø(+¯©Ø"%§.¡.Ø"%§.¡.Øð[
Ø
ð[
àð[
ð )ð[
ð ,ð	[
ð
 &ð[
ð  ð[
ð  ð[
ð 
ð[
ð 
ò[
ó ð[
ñ~ ÐÓÙ�Ð!<È4ÔPð ,0Ø07Ø"ØØ(+¯©Ø&+Ø"Ø!%Ø'*§~¡~ØØ"%§.¡.Ø"%§.¡.Øðxð" Øñ%xØ
ðxàðxð )ðxð .ð	xð
 ðxð ðxð &ðxð  $ðxð ðxð ðxð %ðxð ðxð  ðxð  ðxð 
ðxð" ð#xð$ ð%xð& 
ò'xó Qó ðxñx	 ÐÓÙ�Ð!<È4ÔPá� ¸4ÈAÔNð ,0Ø07Ø18Ø!ØØØ(+¯©Ø&+Ø"ØØ'*§~¡~ØØ"%§.¡.Ø"%§.¡.Øð#|Ø
ð|àð|ð )ð|ð .ð	|ð
 /ð|ð ð|ð ð|ð ð|ð &ð|ð  $ð|ð ð|ð ð|ð %ð|ð ð|ð  ð|ð   ð!|ð" 
ð#|ð$ 
ò%|ó Oó Qó ð|ó~))óX@óB8ó
'ð$WØðWØ'/ðWà	óWó 2ð BFð5Ø
ð5Ø%>ð5à	ô5rP   