
    A>i                         S SK rS SKrS SKrS SKJr  S r\R                  R                  S/ SQ5      S 5       rS rS rS rS	 rS
 rS rg)    Nc                    [         R                  " / SQ5      n[         R                  " / SQ5      nUR                  X S9nU S;   ab  [         R                  " SS/5      n[         R                  " SS/5      n[         R                  " S	S
/SS//XES9n[
        R                  " X65        g [         R                  R                  SS/SS//5      n[         R                  " / SQUS9n[
        R                  " X65        g )Nabcxr   z
align_axis)   columnsr      selfotherr   r	   r   r
   indexr   r   r	   r   r
   r   )
pdSeriescompareIndex	DataFrametmassert_frame_equal
MultiIndexfrom_productassert_series_equal)axiss1s2resultindicesr   expecteds          g/var/www/html/land-tabula/venv/lib/python3.13/site-packages/pandas/tests/series/methods/test_compare.pytest_compare_axisr'      s    	?	#B	?	#BZZZ,F~((Aq6"((FG,-<<3Z#s$G
 	f/--,,q!fvw6G-HI991A
v0    zkeep_shape, keep_equal))TF)FT)TTc                 x   [         R                  " / SQ5      n[         R                  " / SQ5      nUR                  X0US9nU (       a  [         R                  " / SQ5      n[         R                  " SS/5      nU(       a  [         R                  " SS/S	S	/S
S//XVS9nO[         R                  " SS/[
        R                  [
        R                  /S
S//UUS9nOK[         R                  " SS/5      n[         R                  " SS/5      n[         R                  " SS/S
S//XVS9n[        R                  " XG5        g )Nr   r   )
keep_shape
keep_equalr   r   r   r   r   r   r	   r   r   r
   r   r   r   )	r   r   r   r   r   npnanr   r   )r*   r+   r!   r"   r#   r$   r   r%   s           r&   test_compare_various_formatsr/      s    
?	#B	?	#BZZjZIF((9%((FG,-||sc3Z#s4GH ||sbffbff-Sz:H ((Aq6"((FG,-<<3Z#s$G
 &+r(   c                  "   [         R                  " SS[        R                  /5      n [         R                  " SS[        R                  /5      nU R	                  U5      n[         R
                  " SS//SS/S9n[        R                  " X#5        g )Nr   r   r	   r   r   )r   )r   r   r-   r.   r   r   r   r   )r!   r"   r#   r%   s       r&   test_compare_with_equal_nullsr1   A   sl     
Cbff%	&B	Cbff%	&BZZ^F||c3ZL672CDH&+r(   c                  f   [         R                  " / SQ5      n [         R                  " SS[        R                  /5      nU R	                  USS9n[         R
                  R                  SS/SS//5      n[         R                  " S	SS
[        R                  /US9n[        R                  " X$5        g )Nr   r	   r   r   r   r   r   r   r   r   r   )	r   r   r-   r.   r   r   r   r   r   )r!   r"   r#   r$   r%   s        r&   !test_compare_with_non_equal_nullsr3   L   s    	?	#B	Cbff%	&BZZqZ)Fmm((1a&672C)DEGyy#sC0@H6,r(   c                  t   [         R                  R                  / SQ/ SQ/5      n [         R                  " / SQU S9n[         R                  " / SQU S9nUR	                  USS9n[         R                  R                  / SQ/ S	Q/ S
Q/5      n[         R                  " / SQUS9n[
        R                  " X55        g )N)r   r   r   r,   r   r   r   r   r   )r   r   r   r   )r   r   r   r   )r   r   r   r   r   )r   r   from_arraysr   r   r   r   )r   r!   r"   r#   r$   r%   s         r&   test_compare_multi_indexr6   X   s    MM%%y)&<=E	?%	0B	?%	0BZZqZ)Fmm''	|%GHG yy-W=H6,r(   c                      Sn [         R                  " / SQ/ SQS9n[         R                  " / SQ/ SQS9n[        R                  " [        U S9   UR                  U5        S S S 5        g ! , (       d  f       g = f)N3Can only compare identically-labeled Series objectsr   r      r   r   )r   r   dmatchr   r   pytestraises
ValueErrorr   msgser1ser2s      r&   test_compare_different_indicesrF   f   sM    
?C99Yo6D99Yo6D	z	-T 
.	-	-s   A))
A7c                      Sn [         R                  " / SQ5      n[         R                  " / SQ5      n[        R                  " [        U S9   UR                  U5        S S S 5        g ! , (       d  f       g = f)Nr8   r9   )r   r   r:      r<   r>   rB   s      r&   test_compare_different_lengthsrI   n   sI    
?C99YD99\"D	z	-T 
.	-	-s   A''
A5c                     SSS.SSS.SSS.SS	S.S
SS./n SSS.n[         R                  " U S9R                  U5      nUS   R                  US   5      nUS   US   :H  nUS   US   :g  n[         R                  " S/S-  5      n[         R                  " S/S-  5      n[
        R                  " X65        [
        R                  " XF5        [
        R                  " XW5        g )Nz
2015-07-0108335394550)r   r   z
2015-07-02z+49 (0) 0345 300033z
2015-07-03z+49(0)2598 04457z
2015-07-04
0741470003z
2015-07-05z04181 83668zdatetime64[ns]string)datar   r   F   T)r   r   astypeeqr   r   r   )rN   dtypesdf
result_eq1
result_eq2
result_neqexpected_eqexpected_neqs           r&   "test_compare_datetime64_and_stringrY   v   s     /!67!34./D $(3F	4	 	'	'	/BCBsG$JCBsG#JCBsG#J))UGaK(K99dVaZ(L:3:3:4r(   )numpyr-   r?   pandasr   pandas._testing_testingr   r'   markparametrizer/   r1   r3   r6   rF   rI   rY    r(   r&   <module>ra      s_       1( ,,8,	--5r(   