+
    xȇi
#              
       T   ^ RI t^ RIt^ RIt^ RIHt ]P                  P                  R^ . RO.^^..^. .R . R!O.R"^^..R#. ..4      R 4       t
R t]P                  P                  R^ ^.. R$O.. R%O. R&O.]! ^ ^^4      . R$O.^ ^0. R$O... R'OR7      R 4       tR tR tR	 t]P                  P                  R^ . RO.. R%O. R&O.]! R^4      ]! R"R4      3. R(O..4      R
 4       tR tR t]P                  P                  R. R)O4      ]P                  P                  RRR.4      ]P                  P                  RRR.4      R 4       4       4       t]P                  P                  R. R*O4      ]P                  P                  R. R*O4      ]P                  P                  R. R+O4      R 4       4       4       tR t]P                  P                  R. R,O4      R 4       tR t]P                  P                  R]]P6                  ]P8                  ]P:                  .4      R 4       tR tR# )-    Nzarg, expected_rowsc                 ~    VP                   V,          pV P                  V,          p\        P                  ! WE4       R # N_positional_selectoriloctmassert_frame_equalslice_test_dfslice_test_groupedargexpected_rowsresultexpecteds   &&&&  r/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/groupby/test_indexing.pytest_intr   
   s2      44S9F!!-0H&+    c                     VP                   R ,          pV P                  . RO,          p\        P                  ! W#4       R# ):r         Nr            r   r   r   r   r   s   &&  r   
test_slicer      s0    44U;F!!,/H&+r   )idsc                 ~    VP                   V,          pV P                  V,          p\        P                  ! WE4       R # r   r   r
   s   &&&&  r   	test_listr   %   s2    "  44S9F!!-0H&+r   c                     VP                   R,          pV P                  . RO,          p\        P                  ! W#4       R# )r   Nr   r   r   r   r   r   r      r   r   s   &&  r   	test_intsr%   <   s1    44X>F!!"45H&+r   c                     VP                   R RR13,          pV P                  . RO,          p\        P                  ! W#4       R# ):Nr   NNr   r   r   r   r      r$   r   r   s   &&  r   test_slicesr*   D   s7    44RW=F!!"78H&+r   c                     VP                   ^ ^RR13,          pV P                  . RO,          p\        P                  ! W#4       R# )r   Nr'   r(   r   r   s   &&  r   test_mixr,   L   s9    44Q23Y?F!!"78H&+r   c                     V P                  R RR7      P                  V,          pV P                  V,          p\        P                  ! W44       R# )GroupF)sortN)groupbyr   r   r   r	   )r   r   r   r   r   s   &&&  r   test_as_indexr1   T   sB     ""7"7LLSQF!!-0H&+r   c                     \         P                  ! R ^.R ^.R ^.R^.R^..RR.R7      p V P                  RRR7      pVP                  R,          p\         P                  ! R ^.R^..RR.^^.R7      p\        P
                  ! W#4       VP                  R
,          p\         P                  ! R ^.R ^.R^..RR.. ROR7      p\        P
                  ! W#4       R	# )abABcolumnsFas_indexr   r   Nr8   indexN)r   r"   )r   r   r   )pd	DataFramer0   r   r   r	   )dfgroupedr   r   s       r   test_doc_examplesrB   d   s    	
qC8c1XQx#q:S#J
B jjuj-G))#.F||c1XQx03*QPQFSH&+))%0F||
qC8c1X&c
)H &+r   c            
         R  p \         P                  P                  ^4      p^dp^p\        P                  ! RVRR7      p\        V4       Uu. uF  pRV 2NK
  	  pp/ pV Fv  pW1P                  ^ ^4      ,
          p	VRV	  U
u. uF5  p
WP                  ^ R4      ^d,          VP                  ^ R4      ^d,          3NK7  	  pp
VP                  R R7       WV&   Kx  	  V ! V4      pVP                  R	R
R7      P                  \        ^R4      4      pVP                  4        UUu/ uF
  w  rW^R bK  	  pppV ! V4      p\        P                  ! VV4       R# u upi u up
i u uppi )c                     / pV  F1  pW,           F"  pR V^,          RV^,          /WV^ ,          3&   K$  	  K3  	  \         P                  P                  VRR7      pRVP                  n        V# )r5   r6   r=   )orient)DateItem)r>   r?   	from_dictr=   names)datarowsdatelevelr@   s   &    r   _make_df_from_data+test_multiindex.<locals>._make_df_from_data|   sl    D*-uQxeAh)GE!H%& $  \\##D#9)	r   20130101D)periodsfreqzitem Ni'  c                     V ^,          # )r    )xs   &r   <lambda>!test_multiindex.<locals>.<lambda>   s    !A$r   )keyrF   Fr9   )nprandomdefault_rngr>   
date_rangerangeintegersr/   r0   nthsliceitemsr   r	   )rN   rngndatesnitemsdatesirc   multiindex_datarL   nitems_for_dateitemlevelsr@   r   valuesslicedr   s                    r   test_multiindexro   y   sc    ))


"CFFMM*f3?E"'-0-QuQC[-E0O <<2#66 ./
/ <<5)C/a1G#1MN/ 	 
 	' &  
O	,BZZZ/33E!RLAF5D5J5J5LM5L\Td1RL 5LFM!&)H&(+% 1

 Ns   E;E"E r   methodheadtail	simulatedTFc                 :   ^dp^pR\        V4       UUu. uF  p\        V4       F  pRV 2NK
  	  K  	  uppR\        V4       UUu. uF  p\        V4       F  pRV RV 2NK  	  K  	  upp/p\        P                  ! V4      pVP                  RRR7      p	V ^ 8  d   T MW@,           p
VR8X  d   V	P                  RV  pV'       dl   \        V
4       UUu. uF@  p\        V4       F.  pWS,          V,           W4,          8  g   K  WS,          V,           NK0  	  KB  	  pppVP
                  V,          pMV	P                  V 4      pMV	P                  V ) R pV'       d   \        V
4       UUu. uFV  p\        V4       FD  pWE,           V
,
          V,          V,           ^ 8  g   K'  WE,           V
,
          V,          V,           NKF  	  KX  	  pppVP
                  V,          pMV	P                  V 4      p\        P                  ! W4       R# u uppi u uppi u uppi u uppi )	d   groupzgroup valuez row Fr9   rq   N)
r_   r>   r?   r0   r   r   rq   rr   r   r	   )r   rp   rs   n_groupsn_rows_per_groupjgrJ   r@   rA   sizer   rh   indicesr   s   &&&            r   test_against_head_and_tailr~      s   
 H 	"'(8"9
"9Q5?afQCL?L"9
 	+,
,8_ QCuQC $ !,
		D 
d	Bjj5j1G(3 0 6D--ds3 t$AxA<!#h&AA !q  ( !$   www'H ||C(H --sde4 t$AxA$(4/8;a?1D =!%,81<<( =$   www'H ||C(H&+W

s#    H#H*HH)2H %Hstartstopstepc                    ^pRR.V,          R\        \        V4      4      /p\        P                  ! V4      pVP	                  RRR7      pVP
                  WV1,          pVP                  WV1,          p\        P                  ! Wx4       R# )   rv   zgroup 0rw   Fr9   N)	listr_   r>   r?   r0   r   r   r   r	   )	r   r   r   n_rowsrJ   r@   rA   r   r   s	   &&&      r   test_against_df_ilocr      s    
 F 	)v%eFm$D 
d	Bjj5j1G))%T/:Fwwu$'H&+r   c                      \         P                  ! . RO. ROR7      p V P                  ^ R7      pVP                  R,          p\         P                  ! ^^.RR.R7      p\        P
                  ! W#4       R# )	r   r3   r4   )r=   )rM   r;   Nr   r   r   r   r   )r3   r3   r3   r4   r4   )r>   Seriesr0   r   r   assert_series_equal)serrA   r   r   s       r   test_seriesr      sY    
))O+D
ECkkk"G))#.Fyy!QSz2H6,r   c                    \        ^4       Uu. uF
  pRRV 2.NK  	  ppT\        ^4       Uu. uF
  pRRV 2.NK  	  up,          pT\        ^4       Uu. uF
  pRRV 2.NK  	  up,          p\        P                  ! VRR.R7      pVP                  RRR7      pVP                  R	R	V 1,          p\        ^ ^V 4       Uu. uF
  pRRV 2.NK  	  ppT\        ^ ^V 4       Uu. uF
  pRRV 2.NK  	  up,          pT\        ^ ^V 4       Uu. uF
  pRRV 2.NK  	  up,          p\        ^ ^V 4       Uu. uF  p^ V,           NK  	  ppT\        ^ ^V 4       Uu. uF  p^V,           NK  	  up,          pT\        ^ ^V 4       Uu. uF  p^	V,           NK  	  up,          p\        P                  ! VRR.VR
7      p\
        P                  ! WW4       R	# u upi u upi u upi u upi u upi u upi u upi u upi u upi )r   rV   yzr5   r6   r7   Fr9   Nr<   )r_   r>   r?   r0   r   r   r	   )r   rh   rJ   r@   rA   r   r=   r   s   &       r   	test_stepr      s    %*!H-HqSAaS'NHD-U1X.XcQqc7^X..DU1X.XcQqc7^X..D	dS#J	/Bjjuj-G))&D&1F$)!Q$56$5qSAaS'N$5D6U1a%67%6cQqc7^%677DU1a%67%6cQqc7^%677D!!Q-.-qQUU-E.	U1a./.a!ee.//E	U1a./.a!ee.//E||D3*EBH&+' ... 777.//s4   GGG G"G$G)3G.G3G8c            	      b   \         P                  ! R  U u/ uF  q \        ^
4      bK  	  up 4      pRR.pVP                  VP                  ^8  4      V,           FM  w  r4\
        P                  ! VP                  \         P                  ! V4      4       RVP                  9  d   KM  Q h	  R# u up i )ABCr5   r6   CN)	r>   r?   r_   r0   r5   r   assert_index_equalr8   Index)kr@   cols_dgs        r   test_columns_on_iterr     s    	U3U%)|U3	4B :DBDD1H%d++
bjj"((4.9"**$$$ ,	 4s   B,funcc           	      <   \         P                  ! R ^^.R^^.RRR./4      pVP                  R4      V ! . RO4      ,          P                  4       p\         P                  ! . RO.. RO\         P                  ! R.RR7      R7      p\
        P                  ! W#4       R# )	r5   r6   r   G)namer<   N)r5   r6   r5   )      ?g      @r   )r>   r?   r0   meanr   r   r	   )r   r@   r   r   s   &   r   test_groupby_duplicated_columnsr     s     
!Q!Q#s	

B ZZ_T/2388:F||	?"((C5s:SH &+r   c            	         \         P                  ! R . ROR. R	OR. R
O/R7      p V P                  R R.R7      pRp\        P                  ! \
        VR7      ;_uu_ 4        VP                  R4       RRR4       R#   + '       g   i     R# ; i)r5   Nr6   val)rJ   )byz('a2', 'b1'))match)a1a2N)b1b2r   )r   r   r   )r   r   )r>   r?   r0   pytestraisesKeyError	get_group)r@   grpsmsgs      r   #test_groupby_get_nonexisting_groupsr   )  sm    	##9

B ::#s:$D
C	xs	+	+|$ 
,	+	+	+s   A::B	)r   r   r   r"   )r   r   r$   r'   ir   r!   r#   )r   negativer_   setr(   )r   r   r   i  r"   ii)Nr   r   
   r"   i)Nr   r   r   ) numpyr[   r   pandasr>   pandas._testing_testingr   markparametrizer   r   r_   r   r%   r*   r,   rb   r1   rB   ro   r~   r   r   r   r   r   r   r   arrayr   r   rU   r   r   <module>r      ss       	
I	
QC	
B	Y	aV	R
,
,, 
Q	'(	q!Q&
Q		  ,,,,, 	
I	'(
a.%D/	*,AB,,,*#,L  DEFF#34tUm41, 5 5 F1,h ";<!:;., / < =,"- 1, 2,0% $"))RXX!FG, H, %r   