+
    yȇid                     x   ^ RI t^ RIt^ RIt^ RIHtHtHtHtH	t	H
t
 ^ RIHt ^ RIHtHt ]P"                  P%                  RRR.4      ]P"                  P%                  R. RLO4      R 4       4       t]P"                  P%                  R	]	]P(                  ]
].4      R
 4       t]P"                  P.                  ]P"                  P%                  R	]	]P(                  ]
].4      R 4       4       tR tR tR tR tR tR tR tR t R t!R t"R t#R t$]P"                  P%                  R. RLO4      R 4       t%R t&R t'R t(]P"                  P%                  R])! R4      ])! ^ 4      .4      R 4       t*R t+R t,R  t-R! t.R" t/R# t0]P"                  P%                  R. RMO4      R$ 4       t1]P"                  P%                  R%]Pd                  ^d.4      R& 4       t3]P"                  P%                  R%]Pd                  ^.4      R' 4       t4]P"                  P%                  RNRO.RO.3RORO.RO.3RPRO.RPRO.3.4      R( 4       t5]P"                  P%                  R)RQRRR.3RQR*.RR.3RQR+.RR.3RRR,R-.RR.3RRR+R*.RR.3RS. RTORR.3RRR*R,.R*R.3RRR,R+.RR+.3RRR*R+.R*R+.3RRRR+.RR+.3.
4      R. 4       t6R/ t7R0 t8R1 t9R2 t:]P"                  P%                  R3R4R5.4      ]P"                  P%                  R6RR7.4      R8 4       4       t;]P"                  P%                  R%^^.4      R9 4       t<]P"                  P%                  R:^]Pd                  .4      R; 4       t=]P"                  P}                  R<4      R= 4       t?R> t@R? tAR@ tB]P"                  P%                  RA. RTO^ RB... RUORB... RVO. RWO.. RVO. RXO.RCRD.3.4      RE 4       tC]P"                  P%                  R*]P                  ! R*R+.R*R+.RF7      R*R+..4      ]P"                  P%                  RGRHR7.4      RI 4       4       tE]P"                  P%                  R%]Pd                  ^d.4      RJ 4       tFRK tGR# )Y    N)CategoricalIndex	DataFrameIndexIntervalIndex
MultiIndexSeries)is_float_dtypeis_unsigned_integer_dtypecaseg      ?xxxmethodc                     R p\         P                  ! \        VR7      ;_uu_ 4        \        W4      ! WR7       RRR4       R#   + '       g   i     R# ; i)z!Input must be Index or array-likematchsortN)pytestraises	TypeErrorgetattr)idxr   r   r   msgs   &&&& v/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/multi/test_setops.pytest_set_ops_error_casesr      s6     .C	y	,	,T- 
-	,	,	,s   AA	klassc                    V ^RR1,          pV R,          pV\         Jd   V! VP                  4      pVP                  WAR7      pVf   VP                  4       pMTp\        P
                  ! WV4       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  . ROVR7       RRR4       R#   + '       g   i     R# ; i)   NN   Nr   .other must be a MultiIndex or a list of tuplesr      r      )	r   valuesintersectionsort_valuestmassert_index_equalr   r   r   )r   r   r   firstsecond	intersectexpectedr   s   &&&     r   test_intersection_baser.      s    2JEWFJv}}%""6"5I|$$&).
:C	y	,	,940 
-	,	,	,   B77C	c                    V R R R1,          pV R,          pV\         Jd   V! VP                  4      pVP                  WAR7      pVf   VP                  4       pMTp\        P
                  ! WV4       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  . ROVR7       R R R 4       R #   + '       g   i     R # ; i)Nr   r   r    r   r!   r"   )	r   r%   unionr'   r(   r)   r   r   r   )r   r   r   r*   r+   r1   r-   r   s   &&&     r   test_union_baser2   3   s     "IEWFJv}}%KKK*E|$$&%*
:C	y	,	,ID) 
-	,	,	,r/   c                 b   V R ,          pV R,          pV P                  W!R7      pVf   VP                  4       pVP                  V4      '       g   Q h\        P                  ! WC4       \
        P                  \        \        3 Uu. uF  qU! VP                  4      NK  	  ppV F+  pV P                  WqR7      p\        P                  ! WC4       K-  	  Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  . ROVR7       RRR4       R# u upi   + '       g   i     R# ; i)   NNNr5   Nr   Nr    r   r"   )
differencer'   equalsr(   r)   nparrayr   listr%   r   r   r   )	r   r   r+   answerresultr   casesr   r   s	   &&       r   test_difference_baser?   H   s    WFWF^^F^.F|##%==    &) 13&$/GH/GeU6==!/GEH0
f-  ;C	y	,	,yt, 
-	, I 
-	,	,s   D8DD.	c                 >   V R ,          pV RR pV R^ .,          pVP                  W1R7      pVf   VP                  4       p\        P                  ! WT4       \        P
                  \        \        3 Uu. uF  qf! VP                  4      NK  	  ppV F+  pVP                  WR7      p\        P                  ! WT4       K-  	  Rp	\        P                  ! \        V	R7      ;_uu_ 4        VP                  . ROVR7       RRR4       R# u upi   + '       g   i     R# ; i):r#   NNNr   r    r   r!   r"   )symmetric_differencer'   r(   r)   r9   r:   r   r;   r%   r   r   r   )
r   r   r*   r+   r<   r=   r   r>   r   r   s
   &&        r   test_symmetric_differencerB   ^   s    GE"XF"a\F''':F|##%&) 13&$/GH/GeU6==!/GEH++D+<
f-  ;C	y	,	,""94"8 
-	, I 
-	,	,s   3D&DD	c                  0   \         P                  ! R R.RR..R R.R7      p V P                  V 4      pVP                  V P                  8X  g   Q hV P	                  4       P                  RR.4      pV P                  V4      pVP                  RR.8X  g   Q hR# )abABnamesN)r   from_productrA   rI   copyrename)r   r=   idx2s      r   $test_multiindex_symmetric_differencerN   t   s    

!
!C:Sz":3*
MC%%c*F<<399$$$88:c3Z(D%%d+F<<D$<'''    c                 d    V P                   '       d   Q hV R ,          P                   '       g   Q hR# )Nr   NN)emptyr   s   &r   
test_emptyrT      s"    yyy=r7====rO   c                    T pVP                  V R	R VR7      pV RR	 P                  pVf   \        V4      p\        P                  ! V^ V P
                  R7      p\        V\        4      '       g   Q hVP                  V4      '       g   Q hVP
                  V P
                  8X  g   Q h\        P                  ! W54       V P                  WR7      pV R,          pVP                  V4      '       g   Q hVP
                  V P
                  8X  g   Q hV R	R P                  WR7      pV R,          pVP                  V4      '       g   Q hVP
                  V P
                  8X  g   Q hV R,          P                  WR7      pV R,          pVP                  V4      '       g   Q hVP
                  V P
                  8X  g   Q hV R	R pRR.Vn        VP                  WaR7      pVP
                  R
8X  g   Q hV P                  V P                  ^4      ^ ,          VR7      p\        V4      ^ 8X  g   Q hVP                  VP                  VR7      pVP                  VR,          4      '       g   Q hVP                  . VR7      pVP                  V4      '       g   Q hVP
                  VP
                  8X  g   Q hVP                  R.VR7      p\        P                  ! . RO4      pVP
                  Vn        VP
                  VP
                  8X  g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        VP                  . ROVR7       RRR4       R#   + '       g   i     R# ; i)r$   Nr   )	sortorderrI   rQ   foobazr    r   NNrW   one))barr\   )rX   two)rW   r^   )quxr\   )r_   r^   )r#   r   r$   r5   r   )r7   r%   sortedr   from_tuplesrI   
isinstancer8   r(   r)   	sortlevellenr   r   r   )r   r   r*   r=   valsr-   chunkletr   s   &&      r   test_differencerg      s   Ec"#hT2Fs8??D|d|%%dasyyIHfj))))==""""<<399$$$&+ ^^C^+F2wH==""""<<399$$$ X   0F2wH==""""<<399$$$ W/F2wH==""""<<399$$$ 23xHU^HNh2F<<<''' ^^CMM!,Q/d^;Fv;! ell6F==r#### bt,F<<;;&,,&&& ~.T:F%%XH [[HN;;&,,&&&
:C	y	,	,t4 
-	,	,	,s   /MM 	c                      \         P                  ! ^^ .RR..4      p V P                  . 4      p\        P                  ! W4       R# )r#   rD   rE   Nr   rJ   r7   r(   r)   r   r=   s     r   test_difference_sort_specialrk      s;    

!
!Aq6C:"6
7C^^BF&&rO   c                      \         P                  ! ^^ .RR..4      p V P                  . RR7      p\         P                  ! ^ ^.RR..4      p\        P                  ! W4       R# r#   rD   rE   Tr   Nri   )r   r=   r-   s      r   !test_difference_sort_special_truern      s\    

!
!Aq6C:"6
7C^^BT^*F&&Ac
';<H&+rO   c                     \         P                  ! ^\        P                  ! R4      ^.RR..4      p \         P                  ! ^\        P                  ! R4      ^.RR..4      pRp\        P
                  ! \        VR7      ;_uu_ 4        V P                  V4      pRRR4       \        P                  ! XV 4       V P                  VR	R
7      p\        P                  ! W04       R#   + '       g   i     LR; i)r#   2000rD   rE   cdz0sort order is undefined for incomparable objectsr   NFr   )	r   rJ   pd	Timestampr(   assert_produces_warningRuntimeWarningr7   r)   )r   otherr   r=   s       r   !test_difference_sort_incomparablerx      s    

!
!Ar||F';Q#?#s"L
MC##af)=q%AC:$NOE
<C		#	#N#	>	>& 
?&#& ^^E^.F&& 
?	>s   	C%%C5	c                  v   \         P                  ! ^\        P                  ! R4      ^.RR..4      p \         P                  ! ^\        P                  ! R4      ^.RR..4      pRp\        P
                  ! \        VR7      ;_uu_ 4        V P                  VRR	7       R
R
R
4       R
#   + '       g   i     R
# ; i)r#   rp   rD   rE   rq   rr   zH'values' is not ordered, please explicitly specify the categories order r   Tr   N)r   rJ   rs   rt   r   r   r   r7   )r   rw   r   s      r   &test_difference_sort_incomparable_truerz      s    

!
!Ar||F';Q#?#s"L
MC##af)=q%AC:$NOE UC	y	,	,u4( 
-	,	,	,s   	B''B8	c                    V R ,          RRR1,          pV R,          pVP                  W1R7      pVR9   d5   \        P                  ! VP                  4       V P                  4       4       M\        P                  ! W@4       V P                  WR7      p\        P                  ! W@4       V P                  V R,          VR7      p\        P                  ! W@4       V P                  pV R,          P                  VR,          VR7      pVf6   \        P                  ! VP                  4       V P                  4       4       R# VP                  V 4      '       g   Q hR# )	r   Nr$   NNr   rQ   r6   r4   r!   )NF)r1   r(   r)   r'   r%   r8   )r   r   piece1piece2	the_uniontuplesr=   s   &&     r   
test_unionr      s   WTrT]FWFV/I}
i335s7HI
i- 		#	)I))		#b'	-I))ZZFW]]6":D]1F|
f002COO4EF}}S!!!!rO   c                    \        . RO4      pVP                  V 4      pRV9   g   Q hRV9   g   Q hV'       dA   \        P                  ! \        RR7      ;_uu_ 4        V P                  V4       RRR4       R# Rp\
        P                  ! \        VR7      ;_uu_ 4        V P                  V4      pRRR4       VP                  X4      '       d   Q hR#   + '       g   i     R# ; i  + '       g   i     L?; i)rF   rG   zCan only unionr   Nz'The values in the array are unorderable)rF   rG   Cr[   )	r   r1   r   r   NotImplementedErrorr(   ru   rv   r8   )r   using_infer_stringrw   r=   r   result2s   &&    r   test_union_with_regular_indexr   
  s    /"E[[FV###&==]].6FGGIIe HG 8''cBBii&G C ==))))) HGG CBs   CC(C%	(C8	c                 F   V R ,          RRR1,          pV R,          pVP                  W1R7      pVR	9   d   \        P                  ! W@R,          4       M,\        P                  ! VP                  4       V R,          4       V P                  WR7      p\        P                  ! W@4       V R,          P                  V R,          VR7      pV R,          pVP	                  V4      '       g   Q hV P
                  pV P                  V4      pVP	                  V 4      '       g   Q hR# )
r   Nr|   r   :r$   r   N:Nr   N:r   NNrQ   r!   )NT)r&   r(   r)   r'   r8   r%   )	r   r   r}   r~   the_intrR   r-   r   r=   s	   &&       r   test_intersectionr     s    WTrT]FWF!!&!4G|
g3x0
g113SX> s.G'' G  Rt 4E2wH<<!!!!ZZFf%F==rO   c                    V P                  4       P                  R 4      pR.V P                  ,          p\        W4      ! W1R7      p\        W4      ! WR7      P	                  V4      p\
        P                  ! WV4       \        W4      ! VR,          VR7      p\        W4      ! V R,          VR7      P	                  V4      p\
        P                  ! WV4       R# )categoryNr   r   )to_flat_indexastypenlevelsr   rL   r(   r)   )r   r   r   rw   	res_namesr=   r-   s   &&&    r   test_setop_with_categoricalr   6  s     &&z2E$IS!%3Fs#C3::9EH&+S!%)$7Fs#CG$7>>yIH&+rO   c                    \        \        ^4      RR7      pV P                  W!R7      p\        V P                  . .V P
                  ,          RR7      p\        P                  ! W4RR7       V P                  \        P                  ! V4      R,          VR7      p\        V P                  . .V P
                  ,          V P                  R7      p\        P                  ! W4RR7       R	p\        P                  ! \        VR
7      ;_uu_ 4        V P                  \        P                  ! V4      VR7       RRR4       R#   + '       g   i     R# ; i)r$   rW   )namer   NlevelscodesrI   T)exactrQ   r    r   )r   ranger&   r   r   r   r(   r)   r9   asarrayrI   r   r   r   )r   r   rw   r=   r-   r   s   &&    r   test_intersection_non_objectr   F  s    %('Ee/FB4#++3ETRH&$7 bjj/3$?FB4#++3ESYYWH&$7
:C	y	,	,E*6 
-	,	,	,s   (D==E	c                      \         P                  ! ^^ .RR..4      p \        P                  ! V P	                  V RR7      V 4       \        P                  ! V P	                  V RR7      V 4       R# r#   rD   rE   Fr   N)r   rJ   r(   r)   r&   rS   s    r   test_intersect_equal_sortr   X  s_    

!
!Aq6C:"6
7C#**3U*;SA#**3T*:C@rO   c                      \         P                  ! ^^ .RR..4      p \         P                  ! ^ ^.RR..4      pV P                  V RR7      p\        P                  ! W!4       R# rm   )r   rJ   r&   r(   r)   )r   r-   r=   s      r   test_intersect_equal_sort_truer   _  s_    

!
!Aq6C:"6
7C&&Ac
';<Hc-F&+rO   slice_c                 6   \         P                  ! ^^ .RR..4      pW,          p\        P                  ! VP	                  V4      V4       \        P                  ! VP	                  V4      V4       \        P                  ! VP	                  VRR7      V4       R# r   )r   rJ   r(   r)   r1   )r   r   rw   s   &  r   test_union_sort_other_emptyr   f  s{     
!
!Aq6C:"6
7C KE#))E*C0%++c*C0 #))E)6<rO   c                      \         P                  ! ^^ .RR..4      p V R,          pV P                  VRR7      p\         P                  ! ^ ^.RR..4      p\        P                  ! W#4       R# )r#   rD   rE   rQ   Tr   N)r   rJ   r1   r(   r)   )r   rw   r=   r-   s       r    test_union_sort_other_empty_sortr   t  se    

!
!Aq6C:"6
7CGEYYu4Y(F&&Ac
';<H&+rO   c                     \         P                  ! ^\        P                  ! R4      .RR..4      p \        P
                  ! \        RR7      ;_uu_ 4        V P                  V R,          4      pRRR4       \        P                  ! XV 4       V P                  V R,          RR	7      p\        P                  ! W4       R#   + '       g   i     LY; i)
r#   rp   rD   rE   zare unorderabler   Nr#   NNFr   )	r   rJ   rs   rt   r(   ru   rv   r1   r)   rj   s     r   "test_union_sort_other_incomparabler   |  s    

!
!Ar||F';#<sCj"I
JC 
	#	#N:K	L	L3r7# 
M&#& YYs2wUY+F&& 
M	Ls   B??C	c                      \         P                  ! ^\        P                  ! R4      .RR..4      p Rp\        P
                  ! \        VR7      ;_uu_ 4        V P                  V R,          RR7       R	R	R	4       R	#   + '       g   i     R	# ; i)
r#   rp   rD   rE   z<'<' not supported between instances of 'Timestamp' and 'int'r   r   Tr   N)r   rJ   rs   rt   r   r   r   r1   )r   r   s     r   'test_union_sort_other_incomparable_sortr     sb    

!
!Ar||F';#<sCj"I
JC
HC	y	,	,		#b'	% 
-	,	,	,s   A<<B	c                     \         P                  ! R R.^^..4      p V P                  ^,          pRp\        P                  ! \
        VR7      ;_uu_ 4        V P                  V4       RRR4       R#   + '       g   i     R# ; i)rD   rE   z<Can only union MultiIndex with MultiIndex or Index of tuplesr   N)r   rJ   r   r   r   r   r1   )mir   r   s      r   "test_union_non_object_dtype_raisesr     s]    		 	 3*q!f!5	6B
))A,C
HC	*#	6	6
 
7	6	6	6s   A22B	c                      \         P                  ! . .4      p \         P                  ! ^^.^^..RR.R7      pV P                  V4      p\         P                  ! ^^.^^..4      p\        P                  ! W#4       R# )r#   rD   rE   rH   Nr   from_arraysr1   r(   r)   )r   mi2r=   r-   s       r   %test_union_empty_self_different_namesr     so    				%B

 
 1a&1a&!1#s
DCXXc]F%%1v1v&67H&+rO   c                     \         P                  ! ^^.^^..RR.R7      p \        P                  ! ^ 4      pV P	                  V4      p\
        P                  ! WRR7       VP	                  V 4      p\
        P                  ! WRR7       R# )r#   rD   rE   rH   F)check_namesN)r   r   rs   
RangeIndexr1   r(   r)   )r   riresult_leftresult_rights       r   &test_union_multiindex_empty_rangeindexr     sm    			!Q!Q 0c
	CB	q	B((2,K"u=88B<L">rO   c                 B   \         P                  ! R R.^^..4      p\         P                  ! RR.^^..4      p\        P                  ! \        RR7      ;_uu_ 4        \        W4      ! V^R7       RRR4       \        W4      ! VRR7       R#   + '       g   i     L%; i)rD   rE   rq   zThe 'sort' keyword only takesr   r   NT)r   rJ   r   r   
ValueErrorr   )r   idx1rM   s   &  r   test_setops_sort_validationr     s     ""S#JA#78D""S#JA#78D	z)H	I	Id+ 
J D$T*	 
J	Is   BB	valc                 2   \         P                  ! \        ^^.V R7      ^^..RR.R7      p\         P                  ! \        ^^V.V R7      . RO.4      pVP                  V4      p\         P                  ! \        ^.V R7      ^..4      p\        P
                  ! WE4       VP                  VP                  RR7      4      p\         P                  ! \        . V R7      \        . \        P                  R7      .RR.R7      p\        P
                  ! WE4       R# )r#   dtyperD   NrH   F)	ascendingr#   r#   r$   )	r   r   r   r7   r(   r)   r'   r9   int64any_numeric_ea_dtyper   midxmidx2r=   r-   s   &&    r   test_difference_keep_ea_dtypesr     s     !!	A2	3aV<S$KD ""	As#7	8)DE __U#F%%vqc9M'NQRPS&TUH&+__T--->?F%%	.	/"((1KLDkH &+rO   c                 J   \         P                  ! \        ^^.V R7      ^^..RR.R7      p\         P                  ! \        ^^V.V R7      . RO.4      pVP                  V4      p\         P                  ! \        ^^V.V R7      . RO.4      p\        P
                  ! WE4       R# )r#   r   rD   NrH   r   r"   )r   r   r   rA   r(   r)   r   s   &&    r   *test_symmetric_difference_keeping_ea_dtyper     s     !!	A2	3aV<S$KD ""	As#7	8)DE &&u-F%%	As#7	8)DH &+rO   c                     \         P                  ! V R R.R7      p\         P                  ! . ROR R.R7      pVP                  V4      p\         P                  ! VR R.R7      p\        P                  ! WE4       R# )r*   r+   rH   N)val1test1r   val2test2)r   ra   r&   r(   r)   )r   
exp_tuplesleftrightr=   r-   s   &&    r   test_intersect_with_duplicatesr     sm     !!&(0CDD""A!E u%F%%j(8KLH&+rO   zdata, names, expectedrD   rE   rq   rr   c                     \         P                  ! . R R.R7      p\         P                  ! V .VR7      pVP                  V4      pWR8X  g   Q hR# )rD   rE   rH   N)r   ra   _maybe_match_names)datarI   r-   r   r   r=   s   &&&   r   test_maybe_match_namesr     sJ    " 
		3*	5B

 
 $u
5C""3'FrO   c                     \         P                  ! ^^.^^..RR.R7      p \         P                  ! ^^.^^..RR.R7      pV P                  V4      p\         P                  ! ^^.^^..RR.R7      p\        P                  ! W#4       R# )r#   rq   rE   rH   rD   Nr   r   r&   r(   r)   mi1r   r=   r-   s       r   'test_intersection_equal_different_namesr     s    

 
 1a&1a&!1#s
DC

 
 1a&1a&!1#s
DCc"F%%1v1v&6tSkJH&+rO   c                      \         P                  ! ^.^..RR.R7      p \         P                  ! ^.^..4      pV P                  V4      p\        P                  ! W!4       R# )r#   rq   rE   rH   Nr   )r   r   r=   s      r   !test_intersection_different_namesr     sT    			!qc
3*	=B

 
 1#s
,C__S!F&&rO   c                    \         P                  ! ^V ^V .. RO.4      p\         P                  ! ^V ^.. RO.4      pVP                  V4      p\         P                  ! ^V .^^..4      p\        P                  ! W44       R# )r$   N)r#   r   r5   r   r#   r   r5   r   nulls_fixturer   r   r=   r-   s   &    r   3test_intersection_with_missing_values_on_both_sidesr   $  sx    

 
 1mQ"F!U
VC

 
 1mQ"7!C
DCc"F%%='9Aq6&BCH&+rO   c                     \         P                  ! ^V ..4      p\         P                  ! ^V ^..4      pVP                  V4      p\         P                  ! ^^V ..4      p\        P                  ! W44       R# )r#   Nr   r   s   &    r   ,test_union_with_missing_values_on_both_sidesr   -  si    

 
 1m"4!5
6C

 
 1mQ"7!8
9CYYs^F%%1m'<&=>H&+rO   r   float64Float64r   Fc                    \         P                  ! \        P                  ! R \        P
                  .V R7      ^^..4      p\         P                  ! \        P                  ! R \        P
                  R.V R7      . RO.4      pVP                  W1R7      pVfC   \         P                  ! \        P                  ! R R\        P
                  .V R7      . RO.4      pMTp\        P                  ! WE4       R# )      ?r   g      @r   N)r   r$   r5   )r   r5   r$   )	r   r   rs   r:   r9   nanr1   r(   r)   )r   r   r   r   r=   r-   s   &&    r   test_union_nan_got_duplicatedr   6  s     
 
 "((C="FA!O
PC

 
 "((C+=U"KY!W
XCYYsY&F|))XXsC(6	B
 &+rO   c                    \        V^.V R7      p\        ^^.V R7      p\        P                  ! V^^..RR.R7      p\        P                  ! V^^..4      pVP                  V4      pV^8X  d)   \        P                  ! \        . ROV R7      . RO.4      pM'\        P                  ! \        ^^.V R7      ^^..4      p\        P
                  ! Wg4       R# )r   r   rD   NrH   r   )r#   r   r#   r   r   r   r1   r(   r)   )r   r   arr1arr2r   r   r=   r-   s   &&      r   test_union_keep_ea_dtyper   F  s     3("67D1a& 45D!!4!Q.dDD""D1a&>2EZZF
ax))I%9:IF
 ))QF"67!Q@
 &+rO   dupe_valc           	         \         P                  ! \        ^V ^.VR7      \        ^V ^.VR7      .4      p\         P                  ! \        ^W .VR7      \        ^W .VR7      .4      pVP                  V4      p\         P                  ! \        ^^W .VR7      \        ^^W .VR7      .4      p\        P
                  ! WE4       R# )r#   r   N)r   r   r   r1   r(   r)   )r   r   r   r   r=   r-   s   &&    r   (test_union_with_duplicates_keep_ea_dtyper   Z  s     
 
 Ax#+?@Ax#+?@	
C 
 
 Ax*2FGAx*2FG	
C YYs^F%%Aq(-5IJAq(-5IJ	
H &+rO   z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningc                    V P                   '       g   \        V \        \        34      '       d-   \        P
                  ! R \        V 4      P                   24       V P                  4       P                  P                  4       p\        P                  ! V^.\        V4      ,          .4      p\        P                  ! V^ ,          .VO^.\        V4      ^,           ,          .4      pVP                  V4      pVP                  4       p\         P"                  ! WV4       \%        VP&                  ^ ,          4      '       d|   VP)                  ^ 4      R8  P+                  4       '       dT   VP-                  VP&                  ^ ,          P/                  \0        P2                  4      VP&                  ^,          .4      pMj\5        VP&                  ^ ,          4      '       dI   VP-                  VP&                  ^ ,          P/                  \6        4      VP&                  ^,          .4      pVP                  V4      p\         P"                  ! WV4       R# )zNo duplicates in an empty Nl            )rR   rb   r   r   r   skiptype__name__uniquer%   tolistr   r   rd   r1   r'   r(   r)   r
   r   get_level_valuesall
set_levelsr   r9   r   r	   float)indexrequestr%   r   r   r=   r-   s   &&     r   test_union_duplicatesr  s  s    {{{j8H(IJJ0e1E1E0FGH\\^""))+F

 
 &1#F*;!<
=C

 
 6!9"6v"6s6{Q8O!P
QCYYs^F H&+ 	"#**Q-00!!!$u,1133 &&__Q&&rxx0(//!2DE
 


1	&	& &&__Q&&u-xq/AB
 YYs^F&+rO   c                 ^   \        . ROV R7      p\        ^^.V R7      p\        P                  ! V. RO.RR.R7      p\        P                  ! V^^..RR.R7      pVP                  V4      p\        P                  ! \        . ROV R7      . RO.RR.R7      p\        P
                  ! WV4       R# )	r5   r   rD   NrH   )r5   r#   r#   )r   r#   r#   )r#   r#   r5   )r#   r#   r   r   )any_real_numeric_dtyper   r   r   r   r=   r-   s   &      r   test_union_keep_dtype_precisionr    s    )#9:D1a& 67D!!4"3C;GD""D1a&>#tEEZZF%%
"8
99	EDkH &+rO   c                    \        ^\        P                  .V R7      p\        ^\        P                  .V R7      p\        P                  ! V^^..RR.R7      p\        P                  ! V^^..4      pVP                  V4      p\        P                  ! \        ^^\        P                  \        P                  .V R7      . RO.4      p\        P                  ! WV4       R# )r5   r   rD   NrH   )r#   r   r#   r   )r   rs   NAr   r   r1   r(   r)   )r   r   r   r   r   r=   r-   s   &      r    test_union_keep_ea_dtype_with_nar    s    1bee*$89D1bee*$89D!!4!Q.dDD""D1a&>2EZZF%%	Aruubee$,@	A<PH &+rO   c                      \         P                  ! RR.RR.R7      p \         P                  ! . RO4      pV P                  V4      p\         P                  ! . RORR.R7      p\        P                  ! W#4       R# )	r#   xyrH   Nr#   rD   r   rE   )r  r$   rq   r  )r  r  r  r  )r   ra   r1   r(   r)   r   s       r   %test_union_duplicates_different_namesr    sd    

 
 (H!5c3Z
HC

 
 !?
@CYYs^F%%0tH &+rO   z'levels1, levels2, codes1, codes2, names name1name2c                     \        WVR 7      p\        WVR 7      pVP                  V4      pVP                  ^8X  g   Q hR# )r   N)r   r&   _lexsort_depth)levels1levels2codes1codes2rI   r   r   mi_ints   &&&&&   r   test_intersection_lexsort_depthr    s@     G
?C
G
?Cc"F  A%%%rO   )
categories	b_orderedTc                    R R.p\         P                  ! RR.RR.VR7      p\        RV RV/4      p\        RVRV/4      p\        P                  ! W.RR.R7      p\        P
                  ! V4      P                  \        P
                  ! VP                  RR.4      4      4      p\        P
                  ! V4      P                  \        P
                  ! V4      4      p\        P
                  ! VP                  RR.4      4      P                  \        P
                  ! V4      4      p	\        P
                  ! VP                  RR.4      4      P                  \        P
                  ! VP                  RR.4      4      4      p
\        P                  ! Wv4       \        P                  ! W4       \        P                  ! W4       \        P                  ! W4       R# )	12rD   rE   )r  orderedr
  r  rH   N)
rs   Categoricalr   r   r   
from_framer&   r'   r(   r)   )rD   r  rw   rE   df1df2r-   res1res2res3res4s   &&         r   0test_intersection_with_non_lex_sorted_categoriesr)    sx    #JE
SzsCj)LA
S!S%(
)C
S!S%(
)C%%qjc
CH  %22coosCj9:D   %22:3H3H3MND  #s!<=JJc"D   #s!<=JJcoosCj9:D $)$)$)$)rO   c                 D   \         P                  ! \        ^^.VR7      ^^..RR.R7      p\         P                  ! \        ^^V .VR7      . RO.4      pVP                  V4      p\         P                  ! \        ^.VR7      ^..4      p\        P
                  ! WE4       R# )r#   r   rD   NrH   r   )r   r   r   r&   r(   r)   )r   r   r   r   r=   r-   s   &&    r    test_intersection_keep_ea_dtypesr+    s     !!	A2	3aV<S$KD ""	As#7	8)DE u%F%%vqc9M'NQRPS&TUH&+rO   c                     \        R\        P                  ! \        R.RR7      \        R.RR7      .4      R7      p \        R	\        P                  ! R4      R7      p\	        W.4      p\	        \
        P                  \
        P                  3RR.R
\
        P                  R./4      p\        P                  ! W#4       R# )r#   Nstrr   )r   r   g      $@g      4@r#   )
      rD   rE   )rZ   r1  )	r   r   r   ra   r   r9   r   r(   assert_frame_equal)series1series2r=   r-   s       r   .test_union_with_na_when_constructing_dataframer5    s    $$TF%(&$u*EF
G XZ%;%;<V%WXG)*F266266*S$Kbffd^TUH&+rO   )r&   r1   r7   rA   )r1   r&   r7   rA   )r   r   r   r   r.  )r#   r   r"   )rD   rE   rq   )rq   rr   rE   )r   r#   r   )r#   r#   r#   )r   r   r   )Hnumpyr9   r   pandasrs   r   r   r   r   r   r   pandas._testing_testingr(   pandas.api.typesr	   r
   markparametrizer   r:   r;   r.   arm_slowr2   r?   rB   rN   rT   rg   rk   rn   rx   rz   r   r   r   r   r   r   r   slicer   r   r   r   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   filterwarningsr  r  r  r  r  r!  r)  r+  r5   rO   r   <module>rA     s;        #u.M. /. :rxx"FG1 H1& :rxx"FG* H *&-,9,(>5B',' )"4*&2 M
,
,7$A, E$Kq#:;
= <
=,'&,	? M++ -, .,( 
+, ,, 
	012
.	/2C1DE 12 12	

	,
	, 	tdD\"	utTl#	utTl#	#sdD\*	#sdD\*	OdD\2	#sc4[)	#sdC[)	#sc3Z(	$tSk*,',, 9i"89$/, 0 :, A', (,& aZ0, 1,0 RS, T,D,
,	, - q"g&rd#	"	"g	
&& ^^S#JC:6c
C tUm4* 5	
*4 -
, .
,,rO   