+
    yȇi1                     X    ^ RI t^ RIt^ RIt^ RIHtHtHt ^ RIH	t
 R t ! R R4      tR# )    N)PeriodIndex
date_rangeperiod_rangec                     V P                  \        P                  P                  ^4      P	                  \        V 4      4      4      # )   )takenprandomdefault_rngpermutationlen)objs   &w/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/period/test_setops.py_permuter      s/    88BII))!,88SBCC    c                      a  ] tR t^t o R tR tR tR tR tR t	R t
]P                  P                  R4      R	 4       tR
tV tR# )TestPeriodIndexc           
        \        R R^R7      p\        RR^R7      p\        . RORR7      p\        R R^R7      p\        RR^R7      p\        R R^R7      p\        R R^R7      p\        . RR7      p	\        R R^R7      p
\        RR^R7      p\        R	R^R7      p\        . RORR7      p\        . ROR
R7      p\        . ROR
R7      p\        . ROR
R7      p\        RR^R7      p\        RR^R7      p\        RR^
R7      p\        RR^R7      p\        RR^R7      p\        . RORR7      p\        . RORR7      p\        RR^R7      p\        . RORR7      pW2V3WVV3WV
3WV3WV3VVV3VVV3VVV33 FE  w  pppVP                  VVR7      pVf   VP                  4       p\        P
                  ! VV4       KG  	  R# )1/1/2000Dfreqperiods1/6/2000
2000-01-01r   1/4/20002000-01-01 09:00h2000-01-02 09:00minM
2000-04-01z
2003-01-01Y
1998-01-01sortN)
z
2000-01-06z
2000-01-07z
2000-01-08z
2000-01-09z
2000-01-10r   z
2000-01-02z
2000-01-03z
2000-01-04z
2000-01-05)
r   2000-01-01 10:002000-01-01 11:002000-01-01 12:002000-01-01 13:00r    z2000-01-02 10:00z2000-01-02 11:00z2000-01-02 12:00z2000-01-02 13:00)2000-01-01 09:012000-01-01 09:032000-01-01 09:05)r,   r.   2000-01-01 09:08)r,   r-   r.   r/   )
20032004200520062007199819992000200120021/3/20001/2/2000r   1/5/2000r   )
r;   r<   r   r=   r   r   z1/7/2000z1/8/2000z1/9/2000z	1/10/2000)r   r   unionsort_valuestmassert_index_equal)selfr'   other1rng1	expected1rng2other2	expected2rng3other3	expected3rng4other4	expected4rng5other5	expected5rng6other6	expected6rng7other7	expected7rng8other8	expected8rngotherexpectedresult_unions   &&                            r   
test_unionTestPeriodIndex.test_union   s   jsA>JS!< 
	  JS!<jsA> #qA	JS!<Rc* #qA	.S!D0sAF 
	  Hu
 Hu
   
	 LsA>la@ CD	LsA>la@ 
	  Hs
 jsA> 
	" 9%9%9%9%9%69%69%69%	%
 C 99U96L|#//1!!,9	%
r   c                d   \        R RRR7      pVRR	 P                  VR,          VR7      p\        P                  ! W24       \	        VRR	 4      P                  \	        VR,          4      VR7      pVRJ d'   \        P                  ! VP                  4       V4       M\        P                  ! W24       \        R RRR7      p\        R RRR7      pVP                  WAR7      pVP                  \        4      P                  VP                  \        4      VR7      p\        P                  ! W54       R# )
r   	1/20/2000r   r   N
   NNr&   FW-WED)r   r>   r@   rA   r   r?   astypeobject)rB   r'   indexresultindex2r]   s   &&    r   test_union_miscTestPeriodIndex.test_union_misc   s    Z3?s!!%*4!8
f, %*%++HU3Z,@t+L5=!!&"4"4"6>!!&0 Z3?j+GDV/<<'--fmmF.C$-O
f/r   c                   \        R RRR7      pVRR P                  VR,          VR7      p\        P                  ! W2^
R 4       \	        VRR 4      p\	        VR,          4      pVP                  WQR7      pVRJ d*   \        P                  ! VP                  4       V^
R 4       M\        P                  ! W2^
R 4       \        R RRR7      p\        R RRR7      pVP                  WaR7      p\        P                  ! . \        R	7      p\        P                  ! W74       \        R RR
R7      pVP                  WR7      p\        P                  ! W74       R# )r   rb   r   r   Nrc   r&   Fre   )dtype2Drf   )	r   intersectionr@   rA   r   r?   pdIndexrh   )	rB   r'   ri   rj   leftrightrk   r]   index3s	   &&       r   test_intersection!TestPeriodIndex.test_intersection   s.   Z3?s((s$(?
fBrl3 cr
#s$""5"45=!!&"4"4"6bE!!&2,7 Z3?j+GD##F#688Bf-
f/j+DA##F#6
f/r   c                T   \        R RRRR7      p\        RRRRR7      p\        R RRRR7      p\        RRRRR7      p\        R RRRR7      p\        R	R
RRR7      p\        . RRR7      pW43WV3Wx33 Fg  w  rVP                  WR7      p\        P                  ! W4       VP
                  V
P
                  8X  g   Q hVP                  V
P                  8X  d   Kg  Q h	  \        . RORRR7      p\        . RORRR7      p\        RR.RRR7      p\        . RORRR7      p\        RR.RRR7      p\        R	R
RRR7      p\        . RRR7      pW43WV3Wx33 Fq  w  rVP                  WR7      pVf   V
P                  4       p
\        P                  ! W4       VP
                  V
P
                  8X  g   Q hVP                  R8X  d   Kq  Q h	  \        R RRR7      p	V	R,          P                  V	4      p\        V4      ^ 8X  g   Q hV	P                  V	R,          4      p\        V4      ^ 8X  g   Q hR# )z6/1/2000z	6/30/2000r   idx)r   namez	5/15/2000z	6/20/2000r\   Nz7/1/2000z	7/31/2000)r{   r   r&   
2011-01-04
2011-01-02z	6/15/2000r!   r   :r   r   N)z
2011-01-05r|   r}   
2011-01-03)r|   r}   z
2011-02-02z
2011-02-03)
r   r   rq   r@   rA   r{   r   r?   r   r   )rB   r'   baserF   rH   rI   rK   rL   rN   r[   r]   rj   s   &&          r   test_intersection_cases'TestPeriodIndex.test_intersection_cases   sF   J#EJ K3UK [sO	 K3WM [sN	J#EJS9	 
MC
 &&s&6F!!&3;;(--///;;(--///
 D
 D

  | <3US	D

  | <3TR	J#EJ59	 
MC
 &&s&6F|#//1!!&3;;(--///;;#%%%
 [u=S&&s+6{a!!#c(+6{ar   c           	        . ROp\        VRR7      p\        RR^R7      pTp\        VRR7      p\        RR^R7      p\        . RORR7      p\        VRR7      p	\        . RR7      p
T	p. ROp\        VRR7      p\        RR^R7      pTp\        . RORR7      p\        R	R
.RR7      p\        R.RR7      p. ROp\        VRR7      p\        RR^R7      p\        . RORR7      p. ROp\        VRR7      p\        RR^R7      p\        RR.RR7      pW4V3WgV3WV3WV3VVV3VVV3VVV33 FV  w  pppVP                  VVR7      pVf"   \        V4      '       d   VP	                  4       p\
        P                  ! VV4       KX  	  R# )r;   r   r   r   r   r   r   r    r-   r,   r.   r!   r#   r"   r4   r3   r$   r%   r&   Nr:   )r;   r<   r   )r(   r   r*   r)   r+   )r-   r,   r.   )
2000-02-01r   z
2000-06-01z
2000-07-01z
2000-05-01
2000-03-01r#   )r   r   r   )r0   r4   r3   r2   r1   )r   r   
differencer   r?   r@   rA   )rB   r'   
period_rngrD   rC   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   r[   r\   r]   result_differences   &&                          r   test_differenceTestPeriodIndex.test_difference   s   Q
:C0jsA>	:C0jsA> D3O	:C0Rc*	

 :C00sAF	Hu
 02DEER!3 45A	

 :C0la@ JQTU	=
:C0la@ 0s;	 9%9%9%9%69%69%69%%
 C !$u4 @|E

#//1!!"3X>%
r   c                   \        R RRR7      p\        RRRR7      p\        R R.RR7      pVP                  W14      p\        P                  ! WT4       \        P
                  ! RWT4       \        RRRR7      pVP                  W14      p\        R R.RR7      p\        P                  ! WT4       \        P
                  ! RWT4       R# )	2016092020160925r   r   2016092120160924r   20160922N)r   r   r   r@   rA   assert_attr_equal)rB   r'   ri   r\   r]   idx_diffs   &&    r   test_difference_freq$TestPeriodIndex.test_difference_freq=  s     Z#>Z#>
J7cB##E0
h1
VX8Z#>##E0
J7cB
h1
VX8r   c                    \        R ^R7      pVP                  V4      pVP                  V4      p\        P                  ! W14       R# )
2011-01-01r   N)r   appendrq   r@   rA   )rB   rz   idx_duprj   s   &   r   "test_intersection_equal_duplicates2TestPeriodIndex.test_intersection_equal_duplicatesO  s9    <3**S/%%g.
f*r   z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningc                    \        R ^R7      pVP                  V4      p\        R^R7      pVP                  V4      pVP                  V4      p\        . RORR7      p\        P
                  ! WV4       R# )r   r   r}   r   r   N)r   r   r}   r}   r~   r~   )r   r   r>   r   r@   rA   )rB   rz   r   idx2idx2_duprj   r]   s   &      r   test_union_duplicates%TestPeriodIndex.test_union_duplicatesV  si     <3**S/L!4;;t$x( 

 	f/r    N)__name__
__module____qualname____firstlineno__r_   rl   rw   r   r   r   r   pytestmarkfilterwarningsr   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sR     u:n0(06B H??B9$+ [[ VW0 X0r   r   )numpyr	   r   pandasrr   r   r   r   pandas._testing_testingr@   r   r   r   r   r   <module>r      s/       
 DZ0 Z0r   