+
    yȇi<                     R    ^ RI t^ RIt^ RIHtHtHtHtHt ^ RI	H
t  ! R R4      tR# )    N)	DataFramePeriodIndexSeries
date_rangeperiod_rangec                   X  a  ] tR t^t o R tR tR t]P                  P                  R]
].4      R 4       t]P                  P                  R]
].4      R 4       t]P                  P                  R]
].4      R 4       t]P                  P                  R]
].4      R 4       tR	 tR
tV tR# )TestPeriodIndexc                D   \        . RORR7      p\        \        P                  P	                  ^4      P                  \        V4      4      VR7      pVP                  4       pVR,          pVR,          p\        P                  ! WE4       ^VR&   \        P                  ! W#4       \        . R	ORR7      p\        \        P                  P	                  ^4      P                  \        V4      4      VR7      pVR,          pW!R8H  ,          p\        P                  ! WE4       R# )
  zY-JUNfreqindex2007:      N:NNNN)r     r     r   )r   r   r   r   r   )
r   r   nprandomdefault_rngstandard_normallencopytmassert_series_equal)selfidxtsoriginalresultexpecteds   &     ڀ/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/period/test_partial_slicing.py0test_getitem_periodindex_duplicates_string_slice@TestPeriodIndex.test_getitem_periodindex_duplicates_string_slice   s    8wGBII))!,<<SXFcR779Fc7
v0q	
r, 8wGBII))!,<<SXFcRFVm$
v0    c                   \        . RORR7      p\        \        P                  P	                  ^4      P                  \        V4      4      VR7      P                  4       pVR,          VP                  ^,          8X  g   Q hR# )2Q05Qr   r   05Q4N)r(   3Q054Q051Q062Q06)r   r   r   r   r   r   cumsumiloc)r   pisers   &  r#   'test_getitem_periodindex_quarter_string7TestPeriodIndex.test_getitem_periodindex_quarter_string#   s\    ALRYY**1-44SW=RHOOQ6{chhqk)))r&   c                F   \        R RRR7      p\        \        P                  P	                  ^4      P                  \        V4      4      VR7      pVR,          pVR,          p\        P                  ! W44       VR,          pVR,          p\        P                  ! W44       R	# )
z1/1/10z12/31/12M)startendr   r   2010:r      N2011:r:      NN)r   r   r   r   r   r   r   r   )r   r1   sresexps   &    r#   test_pindex_slice_index'TestPeriodIndex.test_pindex_slice_index)   sz    jsC299((+223r7;2Fig
s(ih
s(r&   
make_rangec                   V! R RRR7      pRp. ROpV F4  p\         P                  ! \        VR7      ;_uu_ 4        W%R  RRR4       K6  	  \        \        P
                  P                  ^4      P                  \        V4      4      VR	7      p\        P                  ! VR
,          VR,          4       \        P                  ! VR,          VR,          4       \        P                  ! VR,          VR,          4       \        P                  ! VR,          VR,          4       RR.pV F4  p\         P                  ! \        VR7      ;_uu_ 4        W%R  RRR4       K6  	  R#   + '       g   i     EK`  ; i  + '       g   i     K`  ; i)
2013/01/01Di  r7   r   periodsBslice indices must be integers or None or have an __index__ method2013/02/01 9H2013/02/01 09:00matchNr   :z
2013/01/02NN:r   NN:z
2013/01/02z
2013/01/05N:r      N:z2013/02NN:   NN:z2014NN:im  NN2014z2013/02z
2013/01/02rI   rJ   
pytestraises	TypeErrorr   r   r   r   r   r   r   )r   rB   r   msgvaluesvr=   invalids   &&      r#   test_range_slice_day$TestPeriodIndex.test_range_slice_day3   s&    |#sCR
 Ay44B 54  299((+223s8<CH
q/27
q!:;QsVD
q}af5
qz1T73"$67Ay44B 54  544 544s   E"E7"E47Fc                   V! R RRR7      pRp. ROpV F4  p\         P                  ! \        VR7      ;_uu_ 4        W%R  RRR4       K6  	  \        \        P
                  P                  ^4      P                  \        V4      4      VR7      p\        P                  ! VR,          VR	,          4       \        P                  ! VR
,          VR,          4       \        P                  ! VR,          VR,          4       \        P                  ! VR,          VR,          4       R F  p\        P                  ! WgR V4       K  	  R#   + '       g   i     EKD  ; i)z2013/01/01 09:00:00r=   i  rF   rH   rK   Nr   :z2013/01/01 09:05z2013/01/01 09:10N:i,  i  N:z2013/01/01 10:00z2013/01/01 10:05N:i  ix  N:z2013/01/01 10HNN:i  NN:Nz2013/01/01 09:30N:NiD  NrO   )rD   z2013/012013rQ   )r   rB   r   rU   rV   rW   r=   ds   &&      r#   test_range_slice_seconds(TestPeriodIndex.test_range_slice_secondsQ   s	    43MR
 Ay44B 54  299((+223s8<CH
q!FG7T
q!FG9V
q!23QuX>
q!45qx@2A""1R5!, 3 544s   EEc                   V! R R^
R7      p\        R\        ^
4       Uu. uF  p^dV,           NK  	  up/VR7      p\        VR,          R.R7      pVR,          P                  R4      VR&   \        P                  ! VR,          V4       \        P                  ! VR	,          VP
                  R
,          4       \        P                  ! VR,          VP
                  R
,          4       \        P                  ! VR,          V4       \        P                  ! VR,          V4       \        P                  ! VR,          V4       \        P                  ! VR,          V4       R# u upi )
2013/10/01rE   rF   unitsr   :Nr   N)r   columnsint64:z
2013/09/01z
2013/09/30N:z
2013/09/30z
2013/10/02N:N   N:z
2013/10/01z
2013/10/02N:z
2013/10/02z
2013/09/30N:z
2013/10/15z
2013/10/17N:z2013-06z2013-09N:z2013-11z2013-12NN)r   rangeastyper   assert_frame_equalr0   )r   rB   r   idfemptys   &&    r#   test_range_slice_outofbounds,TestPeriodIndex.test_range_slice_outofboundsl   s    |#rB59!=9a#''9!=>cJB';w..w7g
b!:;UC
b!:;RWWR[I
b!:;RWWR[I
b!:;UC
b!:;UC
b!45u=
b!45u= ">s   E!
c                   V! R R^
R7      p\        R\        ^
4       Uu. uF  p^dV,           NK  	  up/VR7      p\        P                  ! WR4      pR\	        V4      P
                   R2p\        P                  ! \        VR7      ;_uu_ 4        VP                  RR	4       R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VP                  RR	4       R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VR,           R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VR,           R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VP                  R,           R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VP                  R,           R
R
R
4       R
# u upi   + '       g   i     ELC; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R
# ; i)ra   rE   rF   rb   r   zcannot do slice indexing on z( with these indexers \[foo\] of type strrK   fooleftN:z
2013/09/30zfooN:zfooz
2013/09/30N)r   rf   r   get_objtype__name__rR   rS   rT   _maybe_cast_slice_boundget_slice_boundloc)r   rB   frame_or_seriesr   ri   objrU   s   &&&    r#   test_maybe_cast_slice_bound+TestPeriodIndex.test_maybe_cast_slice_bound}   s~   |#rBE"I">Iq377I">?sKjj. +49+=+=*> ?2 2 	 ]]9C00''v6 1]]9C00v. 1 ]]9C00"# 1]]9C00"# 1]]9C00GG&' 1]]9C00GG&' 10) #? 100000 100000000sM   G
GG/
H
H8H)8H<G,	/H 	H	H&	)H9	<I	c                   \        R ^RR7      pVP                  R4      p\        \        P                  ! ^4      VR7      p\        \        ^ ^^4      4      \        \        ^^^4      4      ,           pVP                  V,          pVP                  p\        P                  ! . RO\        P                  R7      pWg,          P                  R8H  P                  4       '       g   Q hWg( ,          P                  R8H  P                  4       '       d   Q hVP                  R4      p\        P                   ! W4       VP                  V,          p	VP"                  R,          p\        P$                  ! W4       VR,          p\        P$                  ! W4       \        P                  ! ^.\        P                  R7      p
V^,          P                  R8X  d   V^,          P&                  ^8X  g   Q hVP                  R	4      p\        P                   ! W4       VP                  V
,          p	VP"                  R	,          p\        P$                  ! W4       VR	,          p\        P$                  ! W4       R
# )z
2014-01-0130D)rG   r   rE   r   )dtypei  rP   i  zMay 2015N)r   r   re   r      rM                        )r   	to_periodr   r   arangelistrf   r0   r   arrayintpyearallanyget_locr   assert_numpy_array_equalrv   r   month)r   dtir1   ser_montonicshufflerr2   nidxindexer_2014r!   r"   indexer_may2015s   &          r#   .test_partial_slice_doesnt_require_monotonicity>TestPeriodIndex.test_partial_slice_doesnt_require_monotonicity   s   r>]]3biim26aQ(4aQ+@@)yy xx9
 "''4/446666',,499;;;;f%
##F988L)
v0V
v0 ((B4rww7Bx}}$b1)<<<j)
##F<88O,$
v0Z
v0r&    N)rs   
__module____qualname____firstlineno__r$   r3   r@   rR   markparametrizer   r   rY   r^   rl   ry   r   __static_attributes____classdictcell__)__classdict__s   @r#   r	   r	      s     1(*) [[\J+EF G: [[\J+EF- G-4 [[\J+EF> G>  [[\J+EF( G(4(1 (1r&   r	   )numpyr   rR   pandasr   r   r   r   r   pandas._testing_testingr   r	   r   r&   r#   <module>r      s&       r1 r1r&   