+
    yȇim                         ^ RI H t HtHt ^ RIt^ RIt^ RIHu Ht	 ^ RI
t^ RI
HtHtHtHtHtHtHt ^ RIHt ^ RIHtHtHt ] ! R^^4      ] ! R^^4      utt ! R R4      t ! R	 R
4      t ! R R4      tR tR t R t!R# )    )datetime	timedeltatimezoneN)	DataFrameDatetimeIndexIndexSeries	Timestampbdate_range
date_range)	BMonthEndMinuteMonthEndi  i  c                     a  ] tR t^!t o . R%OtR t]P                  P                  R]	P                  ]].4      R 4       t]P                  P                  R]4      R 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R tR t]P                  P                  R. R&O4      R 4       t]P                  P                  RRR.4      R 4       tR t]P                  P                  R]4      R 4       t R t!R t"]P                  P                  R. R'O4      R 4       t#R t$R  t%]P                  P                  R!. R(O4      R" 4       t&R# t'R$t(V t)R# ))TestDatetimeIndexSetOpsNc                    \        R ^
R7      pVR,          pVR,          pVP                  WAR7      p\        P                  ! WR4       R# 
2020-01-01periodsN   Nr   NNsortNr   uniontmassert_index_equal)selfr   
everythingfirstsecondr   s   &&    z/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/datetimes/test_setops.pytest_union2#TestDatetimeIndexSetOps.test_union2,   s>    b9
2BF.
e0    boxc                    \        R ^
R7      pVR,          pVR,          pVP                  WQR7      pV! VP                  4      pVP                  WqR7      p\        P                  ! W4       R# r   )r   r   valuesr   r   )	r    r   r(   r!   r"   r#   expectedcaseresults	   &&&      r$   test_union3#TestDatetimeIndexSetOps.test_union33   s^    b9
2B ;;v;16==!T-
f/r'   tzc                   \        R R^VRR7      p\        RR^VRR7      p\        R R^
VRR7      p\        \        V4      \        V4      ,           4      p\        R R^VRR7      p\        RR^VRR7      p\        R R^VRR7      p	\        \        V4      \        VR,          4      ,           4      p
\        R R^VRR7      p\        . VR7      P                  R4      p\        R R^VRR7      pTpW4WV3WxW3WW33 Fx  w  ppppVP	                  VVR7      p\
        P                  ! VV4       VP	                  WR7      pVf   \
        P                  ! VV4       Ka  \
        P                  ! VV4       Kz  	  R	# )
1/1/2000Dns)freqr   r0   unit1/6/20001/4/2000N   Nr0   r   N)r   r   listas_unitr   r   r   )r    r0   r   rng1other1	expected1expected1_notsortedrng2other2	expected2expected2_notsortedrng3other3	expected3expected3_notsortedrngotherexpexp_notsortedresult_unions   &&&                 r$   
test_union"TestDatetimeIndexSetOps.test_union?   sk   *3btLJS!NzRBTR	+DL4:,EF*3btLJS!NzQ2DQ	+DL4R>,IJ*3btLrb)11$7zQ2DQ	" 9:9:9:/
*C]
 99U96L!!,4 ;;s;6L|%%lC8%%lMB/
r'   c                >   \        . RO4      p\        VP                  4       RR7      pVP                  W!R7      p\        P                  ! WC4       VR,          P                  W1R7      p\        P                  ! WC4       VP
                  VP
                  8X  g   Q hR# )
2000-01-03inferr5   r   Nr   NN)rR   
2000-01-01
2000-01-02)r   sort_valuesr   r   r   r5   )r    r   idxorderedr-   s   &&   r$   test_union_coverage+TestDatetimeIndexSetOps.test_union_coverage^   sy    FG 1@s.
f.""7"6
f.{{gll***r'   c                   \        R ^RR7      p\        R ^RR7      pVP                  W1R7      p\        V4      \        VR,          4      ,           pVf   \        \	        V4      4      pM\        V4      p\
        P                  ! WE4       R# )1/1/20123hr   r5   4hr   :   NNN)r   r   r<   r   sortedr   r   )r    r   rng_arng_br-   rL   s   &&    r$   test_union_bug_1730+TestDatetimeIndexSetOps.test_union_bug_1730h   so    :qt<:qt<U.5kDrO+<s,C$C
f*r'   c                    \        R .4      p\        . RO4      pVP                  W1R7      p\        . RO4      pVf   VP                  4       p\        P                  ! WE4       R# )2012-05-11 15:19:49.695000r   N)2012-05-29 13:04:21.3220002012-05-11 15:27:24.8730002012-05-11 15:31:05.350000)ri   rj   rk   rl   )r   r   rX   r   r   )r    r   leftrightr-   rL   s   &&    r$   test_union_bug_1745+TestDatetimeIndexSetOps.test_union_bug_1745t   sa    :;<
 E-
 <//#C
f*r'   c                   ^ RI Hp \        RR4      pW2! ^R7      ,           pVP                  WAR7      p\	        V4      \	        V4      ,           pVf   \        \        V4      4      pM\        V4      p\        P                  ! WV4       R# )r   
DateOffsetz
2013-01-01z
2013-02-01)minutesr   N)	pandasrs   r   r   r<   r   rc   r   r   )r    r   rs   rm   rn   r-   rL   s   &&     r$   test_union_bug_4564+TestDatetimeIndexSetOps.test_union_bug_4564   sm    %,5z"--E-4j4;&<s,C$C
f*r'   c                    \        R ^
R7      pRVP                  n        VP                  W!R7      p\        P
                  ! W24       VP                  e   Q hR# )20150101r   Nr   )r   _datar5   r   r   r   )r    r   r+   r-   s   &&  r$   test_union_freq_both_none1TestDatetimeIndexSetOps.test_union_freq_both_none   sH    z26"4
f/{{"""r'   c                    \        R ^R7      pV. RO,          pV. RO,          pVP                  e   Q hVP                  e   Q hVP                  V4      p\        P                  ! WA4       VP                  R8X  g   Q hR# )z
2016-01-01r   Nr3   )r   rb   r:      )   r:   rb   )r   r5   r   r   r   )r    dtirm   rn   r-   s   &    r$   test_union_freq_infer-TestDatetimeIndexSetOps.test_union_freq_infer   sq     q1< Iyy   zz!!!E"
f*{{c!!!r'   c                   \        R RRR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        RRRR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        RVRV/4      p\        RRRR7      p\        P                  ! VP                  V4       R# )	z1/1/1999r^   MSrT   z1/1/1980z	12/1/2001s1s2N)r   r	   nprandomdefault_rngstandard_normallenr   r   r   index)r    r>   r   rB   r   dfrL   s   &      r$   test_union_dataframe_index2TestDatetimeIndexSetOps.test_union_dataframe_index   s    *jt<BII))!,<<SYGN*k=BII))!,<<SYGNb$+,Zd;
bhh,r'   c           	         \        \        P                  ! ^ ^^\        P                  R7      4      p\	        R^
RR7      pVP                  W1R7       VP                  W!R7       R# )r   dtypez2012-01-03 00:00:00r3   )startr   r5   r   N)r   r   arangeint64r   r   )r    r   i1i2s   &&  r$   test_union_with_DatetimeIndex5TestDatetimeIndexSetOps.test_union_with_DatetimeIndex   sJ    299QARXX673RcJ

r'   c                   \        R ^RR7      P                  R4      p\        R ^RR7      P                  R4      pVP                  V4      p\        R ^RR7      P                  R4      p\        P                  ! W44       R# )rV   UTCr   r0   msusN)r   r=   r   r   r   )r    idx1idx2r-   r+   s   &    r$   (test_union_same_timezone_different_units@TestDatetimeIndexSetOps.test_union_same_timezone_different_units   si    ,e<DDTJ,e<DDTJD!lA%@HHN
f/r'   c                z   R p\        R^VR7      P                  R4      p\        R^VR7      P                  R4      pVP                  VP                  8X  g   Q hVP                  VP                  8w  g   Q hVP	                  V4      p\        R^VR7      P                  R4      p\
        P                  ! WE4       R# 	UTC+05:00rV   r   r   r4   N)r   r=   r0   r   r   r   r   )r    r0   r   r   r-   r+   s   &     r$   0test_union_same_nonzero_timezone_different_unitsHTestDatetimeIndexSetOps.test_union_same_nonzero_timezone_different_units   s     ,b9AA$G,b9AA$G ww$''!!!zzTZZ''' D!lA"=EEdK
f/r'   c                   R p\        R^VR7      P                  R4      p\        R^VR7      P                  R4      pVP                  V4      p\        . ROVR7      P                  R4      p\        P
                  ! WE4       R# )r   rV   r   r   rR   r;   N)rV   rW   rR   
2000-01-04z
2000-01-05)r   r=   r   r   r   r   )r    r0   r   idx3r-   r+   s   &     r$   8test_union_different_dates_same_timezone_different_unitsPTestDatetimeIndexSetOps.test_union_different_dates_same_timezone_different_units   sy     ,b9AA$G,b9AA$G D! R
 '$- 	 	f/r'   c                   R p\        R^VR7      P                  R4      p\        R^VR7      P                  R4      pVP                  VP                  8X  g   Q hVP                  VP                  8w  g   Q hVP	                  V4      p\        R^VR7      p\
        P                  ! WE4       VP	                  V4      p\
        P                  ! WeP                  R4      4       R# r   )r   r=   r0   r   intersectionr   r   )r    r0   r   r   r-   r+   result2s   &      r$   /test_intersection_same_timezone_different_unitsGTestDatetimeIndexSetOps.test_intersection_same_timezone_different_units   s     ,b9AA$G,b9AA$G ww$''!!!zzTZZ''' ""4(lA"=
f/ ##D)
g'7'7'=>r'   c                |   R p\        R^VR7      P                  R4      p\        R^VR7      P                  R4      pVP                  VP                  8X  g   Q hVP                  VP                  8w  g   Q hVP	                  V4      p\        RR.VR7      P                  R4      p\        P                  ! WE4       R# )	r   rV   r   r   rW   r4   r   r;   N)r   r=   r0   r   symmetric_differencer   r   r   )r    r0   r   idx4r-   r+   s   &     r$   7test_symmetric_difference_same_timezone_different_unitsOTestDatetimeIndexSetOps.test_symmetric_difference_same_timezone_different_units   s     ,b9AA$G,b9AA$G ww$''!!!zzTZZ''' **40 ,!="EMMdS
f/r'   c                   \        R ^
R7      pVR,          pVP                  V4      p\        P                  ! W24       \        P
                  \        \        3 Uu. uF  qD! VP                  4      NK  	  ppV F*  pVP                  V4      p\        P                  ! Wr4       K,  	  \        . RO4      pVP                  V4      p\        . \        R7      p	\        P                  ! Wy4       R# u upi )r   r   r   r   N)abc)r   r   r   r   r   arrayr	   r<   r*   r   object)
r    r"   r#   	intersectklasscasesr,   r-   thirdr+   s
   &         r$   test_intersection2*TestDatetimeIndexSetOps.test_intersection2  s    <4r&&v.	
i0 57HHfd3KL3K%v}}%3KLD''-F!!&1  o&##E*6*
f/ Ms   C.c           	        \        R RRRRR7      p\        RRRRRR7      p\        R RRRRR7      p\        RRRRRR7      p\        R RRR	RR7      p\        R
RRRRR7      p\        . RRRR7      p	WE3Wg3W33 FI  w  rVP                  V
4      p\        P                  ! W4       VP
                  VP
                  8X  d   KI  Q h	  \        . ROVRR7      P                  R4      p\        . ROVRR7      P                  R4      p\        RR.VRR7      P                  R4      p\        . ROVRR7      P                  R4      p\        RR.VR	R7      P                  R4      p\        R
RRVRRR7      p\        . VRR7      P                  R4      p	V	P
                  e   Q hWE3Wg3W33 F^  w  rVP                  WR7      pVf   VP                  4       p\        P                  ! W4       VP
                  VP
                  8X  d   K^  Q h	  R	# )6/1/2000z	6/30/2000r3   rY   r4   )r5   namer6   z	5/15/2000z	6/20/2000rK   Nz7/1/2000z	7/31/2000M8[ns])r5   r   r   
2011-01-04
2011-01-02)r0   r   )r5   r0   r6   r   r   )z
2011-01-05r   r   z
2011-01-03)r   r   z
2011-02-02z
2011-02-03)r   r   r   r   r   r5   r=   rX   )r    r0   r   baserB   rD   rF   rH   rng4	expected4rJ   r+   r-   s   &&&          r$   test_intersection)TestDatetimeIndexSetOps.test_intersection!  s<   
 *k%dS +{5tTz;SuSWX	 +{7QUVz;StRVW	*k%dS!"3U(K	 
MC
 &&s+F!!&3;;(--///
 DRW

'$- 	 DRW

'$- 	 "<(Re

'$- 	 D
 '$-	 	
 "<(Rd

'$- 	
 #"4e
 ""%8@@F	~~%%% 
MC
 &&s&6F|#//1!!&3;;(--///
r'   r5   minBc                   Tp\        R RW#R7      pVR,          P                  V4      p\        V4      ^ 8X  g   Q hVP                  VP                  8X  g   Q hVP                  VR,          4      p\        V4      ^ 8X  g   Q hVP                  VP                  8X  g   Q hVR8g  pVR,          P                  VRR 4      p\        P
                  ! WTR,          4       V'       d   VP                  VP                  8X  g   Q hVRR P                  VR,          4      p\        P
                  ! WTR,          4       V'       d    VP                  VP                  8X  g   Q hR# R# )	r   z	6/15/2000r5   r0   :r   r   Nr   r9   NrU   )r   r   r   r5   r   r   )r    tz_aware_fixturer5   r0   rJ   r-   
check_freqs   &&&    r$   test_intersection_empty/TestDatetimeIndexSetOps.test_intersection_emptye  s+    [tCS&&s+6{a{{chh&&&!!#c(+6{a{{chh&&& U]
R%%c"#h/
f"g.;;#((*** RS&&s2w/
f"g.;;#((*** r'   c                    ^ RI Hp \        R^RR7      pW!! ^R7      ,           pVP                  V4      p\	        V4      ^ 8X  g   Q hR# )r   rr   r^   12hr`   hoursN)ru   rs   r   r   r   )r    rs   index_1index_2r-   s   &    r$   test_intersection_bug_17082TestDatetimeIndexSetOps.test_intersection_bug_1708  sD    %Z?JQ//%%g.6{ar'   c                   . ROp\        W1R7      p\        RR^VR7      p\        W1R7      p\        W1R7      p\        RR^VR7      p\        VR,          VR7      p	\        W1R7      p
\        . VR7      p\        W1R7      pWEV3WxV	3WV33 FS  w  rpVP                  W4      pVf"   \        V4      '       d   VP	                  4       p\
        P                  ! VV4       KU  	  R# )	1/2/2000r8   r;   r7   r3   )r5   r   r0   r9   N)r   z1/3/2000r2   r8   z1/5/2000)r   r   
differencer   rX   r   r   )r    r0   r   	rng_datesr>   r?   r@   rB   rC   rD   rF   rG   rH   rJ   rK   r+   result_diffs   &&&              r$   test_difference'TestDatetimeIndexSetOps.test_difference  s    P	Y.JS!C!)3	Y.JS!C!)B-B7	Y.rb)!)3	 9%9%9%%
 C
 ..5K|E

#//1!!+x8%
r'   c                   \        R RRRR7      p\        RRRRR7      p\        R R.RRR	7      pVP                  W14      p\        P                  ! WT4       \        P
                  ! R
WT4       \        RRRRR7      pVP                  W14      p\        R R.RRR	7      p\        P                  ! WT4       \        P
                  ! R
WT4       R# )2016092020160925r3   r4   )r5   r6   2016092120160924r   Nr   r5   r5   20160922)r   r   r   r   r   assert_attr_equal)r    r   r   rK   r+   idx_diffs   &&    r$   test_difference_freq,TestDatetimeIndexSetOps.test_difference_freq  s     :z$G:z$G *j!9PTU##E0
h1
VX8 :z$G##E0 *j!9PST
h1
VX8r'   c                    \        R \        R^^4      ^dR7      p\        R \        R^^4      ^bR7      p\        VP                  W14      4      ^8X  g   Q hR# )zQE-JANi  )r5   r   r   N)r   r   r   r   )r    r   dti1dti2s   &&  r$   test_datetimeindex_diff/TestDatetimeIndexSetOps.test_datetimeindex_diff  sL    xxb"/EsSxxb"/ErR4??4./1444r'   c                h   \        R RRVR7      pVR,          P                  VR,          4      pVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVR,          P                  VR,          4      pVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVR,          P                  VR,          4      pVP                  VP                  8X  g   Q hVP                  e   Q hVP                  VP                  8X  g   Q hVR,          P                  VR	,          4      pVP                  VP                  8X  g   Q hVP                  R
8X  g   Q hVP                  VP                  8X  g   Q h\        \        VR	,          4      RR7      pVR,          P                  V4      pVP                  e   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVR,          P                  V4      pVP                  e   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hR# )r2   z1/1/2002rY   )r   r0   :N2   N:r   d   N:   r   N:<   r   NN:   K   Nr3   rK   r   )	r   r   r   r5   r0   r   freqstrr   r<   )r    r0   rJ   r-   nofreqs   &&   r$   test_setops_preserve_freq1TestDatetimeIndexSetOps.test_setops_preserve_freq  s   ZeCSF,{{chh&&&{{chh&&&yyCFF"""SF,{{chh&&&{{chh&&&yyCFF"""SF,{{chh&&&{{"""yyCFF"""S&&s5z2{{chh&&&~~$$$yyCFF"""tCJ/g>S'{{"""{{chh&&&yyCFF"""S&&v.{{"""{{chh&&&yyCFF"""r'   c                    \        . RORR7      pVR,          P                  VR,          4      pVR,          p\        P                  ! W#4       R# )
2018-12-31zQE-DECrT   :NNr   :rb   Nr   rU   N)r  z
2019-03-31z
2019-06-30z
2019-09-30z
2019-12-31z
2020-03-31)r   r   r   r   )r    r   r-   r+   s   &   r$   &test_intersection_non_tick_no_fastpath>TestDatetimeIndexSetOps.test_intersection_non_tick_no_fastpath  sG     

 S&&s4y1r7
f/r'   c                   \        R ^dRRR7      pVR,          RRR1,          pVR,          RRR1,          pVP                  VP                  8X  g   Q hVP                  V4      pVP                  VP                  8X  g   Q hR# )z1/1/2011hutcr   r5   r0   :
   Z   NN:   P   N)r   r0   r   )r    rJ   rm   rn   r-   s   &    r$   test_dti_intersection-TestDatetimeIndexSetOps.test_dti_intersection  sr    SsuE5z$B$E
4R4 ww#&&   ""5)yyDGG###r'   setopc                   \        R ^RRR7      p\        R^RRR7      p\        W!4      ! V4      pVP                  R4      pVP                  R4      p\        WQ4      ! V4      p\        P                  ! WG4       VP
                  VP
                  8X  g   Q h\        V4      '       dQ   V^ ,          P
                  \        P                  J g   Q hVR,          P
                  \        P                  J g   Q hR# R# )	z2012-11-15 00:00:00r  z
US/Centralr	  z2012-11-15 12:00:00
US/Easternr   Nr  )	r   getattr
tz_convertr   r   r0   r   r   r  )r    r  rJ   rB   r-   rm   rn   r+   s   &&      r$   test_dti_setop_aware,TestDatetimeIndexSetOps.test_dti_setop_aware  s     .U/V$T*~~e$&4'.
f/yyDGG###v;;!9<<8<<///":==HLL000 r'   c           
     >   \        \        R 4      \        P                  .4      p\        RR.RR7      pVP	                  V4      p\        \        R 4      \        P                  \        RRR7      \        RRR7      .\        R7      p\        P                  ! W44       R# )z
2011-01-01z
2012-01-01z
2012-01-02
Asia/Tokyor;   r   N)	r   r
   pdNaTr   r   r   r   r   )r    rJ   rB   r-   r+   s   &    r$   test_dti_union_mixed,TestDatetimeIndexSetOps.test_dti_union_mixed  s    Y|4bff=>lL9lK4,',<8,<8	 
 	f/r'    )Nr   r  r  zdateutil/Asia/Singaporedateutil/US/Pacific)Nr  r  r  )Nr  r  )r   r   r   )*__name__
__module____qualname____firstlineno__r0   r%   pytestmarkparametrizer   r   r	   r<   r.   rO   r[   rf   ro   rv   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  __static_attributes____classdictcell____classdict__s   @r$   r   r   !   s    
B1 [[URXXvt$<=	0 >	0 [[T2&C 'C<+
++.+#"	- 00 0?(0"0" [[G=0=0B [[VeS\2+ 3+6  [[T2&9 '949$5
 [[T#EF # G #D0"$ [[W&WX1 Y1$0 0r'   r   c                      a  ] tR tRt o R tR tR tR tR tR t	]
P                  R 4       t]P                  P                  R	R
R.4      R 4       tRtV tR# )TestBusinessDatetimeIndexi  c                   \        \        \        4      pVR ,          pVR,          pVP                  WAR7      p\	        V\
        4      '       g   Q hVR,          pVR,          pVP                  WAR7      p\	        V\        4      '       g   Q hVR,          pVR,          pVP                  WAR7      p\	        V\
        4      '       g   Q hVf)   \        P                  ! VP                  W1R7      V4       MK\        \        V4      \        V4      ,           4      p\        P                  ! VP                  W1R7      V4       \        \        \        \        4       R7      pVP                  W!R7      p\	        V\
        4      '       g   Q hR# )Nr
  Nr   r
  Nr   r   r
  NNNrT   )r   STARTENDr   
isinstancer   r   r   r   r<   r   r   )r    r   rJ   rm   rn   	the_unionr+   s   &&     r$   rO   $TestBusinessDatetimeIndex.test_union   s:   %%3xD	JJuJ0	)]3333 2wCJJuJ0	)U++++ 2wD	JJuJ0	)]3333 <!!%++d+">	J$T%[4:%=>H!!%++d+">I )+6IIcI-	)]3333r'   c                   \        R ^2\        4       R7      pVR,          pVR,          pVP                  WAR7      pVf   \        P                  ! WR4       MH\        \        VR,          4      \        VR,          4      ,           4      p\        P                  ! WV4       VR,          pVR,          pVP                  WAR7      pVR,          p\        P                  ! WV4       R# )r2   r`   r0  Nr   Nr   Nr.  :   #   N)r   r   r   r   r   r   r<   )r    r   rJ   r>   rB   r4  r+   s   &&     r$   test_union_not_cacheable2TestBusinessDatetimeIndex.test_union_not_cacheableD  s    Rfh?3x3xJJtJ/	<!!)1$T#c(^d3s8n%DEH!!)63x5zJJtJ/	s8
i2r'   c                   \        R ^2\        4       RR7      pVR,          pVR,          pVP                  V4      pVR,          p\        P                  ! WE4       \        V\        4      '       g   Q hVP                  VP                  8X  g   Q hVP                  V4      p\        P                  ! WE4       VR,          P                  VR,          4      p\        . 4      P                  R4      p\        P                  ! WE4       R# )r2   r4   )r   r5   r6   r0  r7  :r
  r   Nr.  N)	r   r   r   r   r   r3  r   r5   r=   )r    rJ   r>   rB   the_intr+   s   &     r$   r   +TestBusinessDatetimeIndex.test_intersectionU  s    RfhTJ3x3x##D)u:
g0'=1111||sxx'''##D)
g0 c(''C1 $,,T2
g0r'   c                    \        R R4      p\        RR4      pVP                  V4      p\        P                  ! W24       VP                  VP                  8X  g   Q hR# )
11/30/2011
12/31/2011
12/10/2011
12/20/2011Nr   r   r   r   r5   r    r   r   r-   s   &   r$   test_intersection_bug/TestBusinessDatetimeIndex.test_intersection_bugg  sL    l3l3"
f({{aff$$$r'   c                    \        R 4      \        R4      .p\        VRR7      pVP                  V4      p\        P                  ! W24       R# )r   z
2020-02-01r   r   N)r
   r   r   r   r   )r    r*   rY   ress   &   r$   test_intersection_list0TestBusinessDatetimeIndex.test_intersection_listo  sB     L)9\+BCF-v&
c'r'   c                8   \         P                  ! R 4      pVP                  R4      p\        R^^4      p\        R^^4      p\        R^^4      p\        R^^4      p\	        WEV\        4       R7      p\	        WgV\        4       R7      p	VP                  WR7       R# )pytzr    r   endr0   r5   r   N)r$  importorskipr   r   r   r   r   )
r    r   rM  r0   early_start	early_end
late_startlate_endearly_drlate_drs
   &&        r$   test_month_range_union_tz_pytz8TestBusinessDatetimeIndex.test_month_range_union_tz_pytzw  s    ""6*]]<(tQ*T1a(	dAq)
D!Q'K2HJW:Tw*r'   c                   ^ RI Hp V! R4      p\        R^^4      p\        R^^4      p\        R^^4      p\        R^^4      p\        WEV\	        4       R7      p\        WgV\	        4       R7      p	VP                  WR7       R# )r   )dateutil_gettzr  rN  rO  r   N)pandas._libs.tslibs.timezonesr[  r   r   r   r   )
r    r   r[  r0   rR  rS  rT  rU  rV  rW  s
   &&        r$   "test_month_range_union_tz_dateutil<TestBusinessDatetimeIndex.test_month_range_union_tz_dateutil  su    @L)tQ*T1a(	dAq)
D!Q'K2HJW:Tw*r'   r   FNc                    \        \        R 4      \        R4      \        R4      .4      pVP                  W!R7      p\        \        R 4      \        R4      .4      p\        P                  ! W44       R# )z
2019-12-13z
2019-12-12r   N)r   r
   r   r   r   )r    r   r   r-   r+   s   &&   r$   test_intersection_duplicates6TestBusinessDatetimeIndex.test_intersection_duplicates  sg     ,',','
 ""4"3)L19\3JKL
f/r'   r  )r   r!  r"  r#  rO   r:  r   rF  rJ  rX  tdskip_if_windowsr]  r$  r%  r&  r`  r'  r(  r)  s   @r$   r,  r,    sg     "4H3"1$%(+ + +  [[VeT]30 40r'   r,  c                      a  ] tR tRt o R tR t]P                  P                  RRRR]	! ]
! RR7      4      .4      R	 4       tR
tV tR# )TestCustomDatetimeIndexi  c                ~   \        \        \        R R7      pVR,          pVR,          pVP                  WAR7      p\	        V\
        4      '       g   Q hVR,          pVR,          pVP                  WA4      p\	        V\        4      '       g   Q hVR,          pVR,          pVP                  WAR7      p\	        V\
        4      '       g   Q hVf(   \        P                  ! VP                  W1R7      V4       \        \        \        \        4       R7      pVP                  W!R7      p\	        V\
        4      '       g   Q hR# )CrT   r.  r/  r   r   r0  N)r   r1  r2  r   r3  r   r   r   r   r   r   )r    r   rJ   rm   rn   r4  s   &&    r$   rO   "TestCustomDatetimeIndex.test_union  s   %3/3xD	JJuJ0	)]3333 2wCJJu+	)U++++ 2wD	JJuJ0	)]3333 <!!%++d+">	J )+6IIcI-	)]3333r'   c                    \        R RRR7      p\        RRRR7      pVP                  V4      p\        P                  ! W24       VP                  VP                  8X  g   Q hR# )r@  rA  rg  rT   rB  rC  NrD  rE  s   &   r$   rF  -TestCustomDatetimeIndex.test_intersection_bug  sP    l=l="
f({{aff$$$r'   r0   Nr   zEurope/Berlinr   c                V   \        R ^RVR7      p\        R^RVR7      pVP                  V4      p\        R^RVR7      p\        P                  ! WE4       \        R^RRR7      p\        R^RRR7      pVP	                  V4      p\        R^RRR7      p\        P                  ! WE4       R# )z
2020-03-27r3   r	  z
2020-03-30z
2021-10-28zEurope/Londonz
2021-10-30N)r   r   r   r   r   )r    r0   r   r   r-   r+   index1index2s   &&      r$    test_intersection_dst_transition8TestCustomDatetimeIndex.test_intersection_dst_transition  s    
 ,C,C""4(lACBG
f/ L!#/RL!#/Rf%lACOT
f/r'   r  r  )r   r!  r"  r#  rO   rF  r$  r%  r&  r   r   rn  r'  r(  r)  s   @r$   re  re    sK     4B% [[tUOXib6I-JK00r'   re  c                      \        R R.RRRR7      p \        R.RRRR7      pV P                  V4      p\        . RORRRR7      p\        P                  ! W#4       R# )	
2024-05-11
2024-05-12zdatetime64[us]Dater3   )r   r   r5   
2024-05-13N)rq  rr  rt  )r   r   r   r   l1l2r-   r+   s       r$   test_union_non_nano_rangelikerx    se    		|$,<6PS
B 
~-=FQT	UBXXb\F2	H &+r'   c                      \        R RRR7      p \        RRRR7      pV P                  V4      p\        RR.RRR7      p\        P                  ! W#4       R	# )
z
2024-01-01z
2024-01-03s)r6   z
2024-01-02z
2024-01-04zdatetime64[s]r3   r   N)r   r   r   r   r   ru  s       r$   $test_intersection_non_nano_rangeliker{    sT    	L,S	9B	L,S	9B__R F	|$H
 &+r'   c                      \        R RRRR7      p \        R RRRR7      pV P                  V4      p\        R RRRR7      p\        P                  ! W#4       R# )z
2025-10-25z
2025-10-26r3   zEurope/Helsinkir   z
2025-10-28Nr   )rl  rm  r-   r+   s       r$   test_union_across_dst_boundaryr}     sS     lARSFlARSF\\&!F,3CTUH&+r'   )"r   r   r   numpyr   r$  pandas.util._test_decoratorsutil_test_decoratorsrb  ru   r  r   r   r   r	   r
   r   r   pandas._testing_testingr   pandas.tseries.offsetsr   r   r   r1  r2  r   r,  re  rx  r{  r}  r  r'   r$   <module>r     s       ) )      dAq!8D!Q#7
s{0 {0|D0 D0N:0 :0z, 
,,r'   