
    Mh2                         S SK rS SKrS SKrS SKJr  \R                  R                  S/ SQ5      S 5       r
\R                  R                  S/ SQ5      S 5       rS rS	 rS
 rS rS rg)    N
align_axis)r      indexcolumnsc                    [         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r   )r   r   r      selfotherr	   r   r   r   r   r   r	   r   r   r   r   )
pdSeriescompareIndex	DataFrametmassert_frame_equal
MultiIndexfrom_productassert_series_equal)r   s1s2resultindicesr   expecteds          Z/var/www/html/env/lib/python3.13/site-packages/pandas/tests/series/methods/test_compare.pytest_compare_axisr&      s     
?	#B	?	#BZZZ2F^#((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_nullsr0   B   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_nullsr2   M   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_indexr5   Y   s    MM%%y)&<=E	?%	0B	?%	0BZZqZ)Fmm''	|%GHG yy-W=H6,r'   c                     Sn [         R                  " [        U S9   [        R                  " / SQ/ SQS9n[        R                  " / SQ/ SQS9nUR                  U5        S S S 5        Sn [         R                  " [        U S9   [        R                  " / SQ5      n[        R                  " / SQ5      nUR                  U5        S S S 5        g ! , (       d  f       Nt= f! , (       d  f       g = f)Nz3Can only compare identically-labeled Series objects)match)r   r      r   r   )r	   r
   d)r   r   r8      )pytestraises
ValueErrorr   r   r   )msgser1ser2s      r%   test_compare_unaligned_objectsrA   g   s    
?C	z	-yy/:yy/:T 
. @C	z	-yy#yy&T 
.	- 
.	- 
.	-s   ACAC
C
C-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   )rF   dtypesdf
result_eq1
result_eq2
result_neqexpected_eqexpected_neqs           r%   "test_compare_datetime64_and_stringrQ   w   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   markparametrizer&   r.   r0   r2   r5   rA   rQ    r'   r%   <module>rY      s|        'AB1 C1( ,,8,	-- 5r'   