+
    xȇii-                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	H
t
Ht ^ RIHt ]P                  P!                  RR^.4      R 4       tR tR	 tR
 t]P                  P!                  RRR.4      R 4       t]P                  P!                  R. RHO4      ]P                  P!                  RRRR//RRR.//.4      R 4       4       t]P                  P!                  RRRR./RRR.RRR./.4      R 4       tR t]P                  P!                  RRR.4      R 4       t]P                  P!                  R. RHO4      ]P                  P!                  RRR/RR./.4      R 4       4       tR  t]P                  P!                  R!RIR"^R#R$.33RJ.4      R% 4       tR& tR' t]P                  P!                  R(]P>                  ! ]	! R#R$.R$R#..4      R)] ..4      4      R* 4       t!]P                  P!                  R+]! ]P>                  ! ]
! R,PE                  4       4      R] 3R-] 3R.] 3R/] 3R0] 3R)] 3.4      4      4      R1 4       t#R2 t$R3 t%]P                  P!                  RR4 R5 R6 .4      R7 4       t&R8 t']P                  PQ                  R94      ]P                  P!                  R:R;R.R<3R]PR                  RR/R=3.4      R> 4       4       t*]P                  P!                  RRR.RR;..4      R? 4       t+]P                  P!                  RRR.R;R..4      R@ 4       t,]P                  P!                  RARB RC RD RE .4      RF 4       t-RG t.R# )K    )chainN)SpecificationError)	DataFrameSeries
date_rangeresult_typefooc           	      X   \        \        P                  ! \        P                  ! ^RR7      ^4      P	                  ^R	4      ^,           . R
OR7      pRp\
        P                  ! \        VR7      ;_uu_ 4        VP                  R ^V R7       RRR4       R#   + '       g   i     R# ; i)   int64dtypecolumnszUinvalid value for result_type, must be one of {None, 'reduce', 'broadcast', 'expand'}matchc                 
    . RO# )   r      r    xs   &s/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/apply/test_invalid_arg.py<lambda>(test_result_type_error.<locals>.<lambda>&   s    9    axisr   NABC	r   nptilearangereshapepytestraises
ValueErrorapply)r   dfmsgs   &  r   test_result_type_errorr0      s{     

		!7+Q/772>B
B	2  
z	-	-
$1+F 
.	-	-	-s   8BB)	c                      \        . RO. RO. RO.. R	O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)
r   indexz)No axis named 2 for object type DataFramer   c                     V # Nr   r   s   &r   r   /test_apply_invalid_axis_value.<locals>.<lambda>-   s    1r   Nr   )         )      	   )ar=   cr   r*   r+   r,   r-   r.   r/   s     r   test_apply_invalid_axis_valuerA   )   sH    	Iy)4O	LB
5C	z	-	-
a  
.	-	-	-s   AA.	c                      \        R ^ ^.R^^./4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P	                  4        RRR4       R#   + '       g   i     R# ; i)r"   r#   zMust provider   N)r   r*   r+   	TypeErroraggr@   s     r   test_agg_raisesrE   0   sK    	C!Qq!f-	.B
C	y	,	,
 
-	,	,	,s   AA&	c                      \        . RO4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P	                  R RR7       RRR4       R#   + '       g   i     R# ; i)r   z)na_action must either be 'ignore' or Noner   c                     V # r5   r   r   s   &r   r   8test_map_with_invalid_na_action_raises.<locals>.<lambda>>   s    r   ____	na_actionNr   r   r*   r+   r,   map)sr/   s     r   &test_map_with_invalid_na_action_raisesrO   9   sA    yA
5C	z	-	-	kV, 
.	-	-	-s   AA$	input_na_actionrI   Tc                     \        . RO4      pRV  R2p\        P                  ! \        VR7      ;_uu_ 4        VP	                  ^^/V R7       RRR4       R#   + '       g   i     R# ; i)r   z+na_action must either be 'ignore' or None, z was passedr   rJ   Nr   rL   )rP   rN   r/   s   &  r   2test_map_arg_is_dict_with_invalid_na_action_raisesrR   A   sQ     	yA77H
TC	z	-	-	q!f0 
.	-	-	-s   AA)	methodrD   	transformfuncr"   r#   sumc                     V ! R ^./4      pRp\         P                  ! \        VR7      ;_uu_ 4        \        W14      ! V4       RRR4       R#   + '       g   i     R# ; i)r"   nested renamer is not supportedr   N)r*   r+   r   getattr)frame_or_seriesrS   rU   objr   s   &&&  r   test_nested_renamerr\   J   sG     3*
%C-E	)	7	7T" 
8	7	7	7s   AA	renamerminmaxbarmeanc                     \        \        ^4      RRR7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  V 4       RRR4       R#   + '       g   i     R# ; i)r9   r   series)r   namerX   r   N)r   ranger*   r+   r   rD   )r]   rN   r/   s   &  r   test_series_nested_renamerrf   T   sG    
 	uQxwX6A
+C	)	5	5	g 
6	5	5	5s   AA+	c            	      X   \        \        P                  P                  ^4      P	                  R
4      . RO\        R^
R7      R7      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  P                  RRR./4       R	R	R	4       R	#   + '       g   i     R	# ; i)r   z1/1/2000)periods)r   r3   rX   r   r	   rV   ra   N)
   r   r!   )r   r&   randomdefault_rngstandard_normalr   r*   r+   r   r"   rD   )tsdfr/   s     r   test_apply_dict_deprrn   _   sw    
		a 009R0D
 ,C	)	5	5

EE6?+, 
6	5	5	5s   . BB)	c           	          \        R \        ^4      R^/4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        W4      ! R RR/RRR//4       RRR4       R#   + '       g   i     R# ; i)	r"   r#   rX   r   r	   r^   r`   r_   N)r   re   r*   r+   r   rY   )rS   r.   r/   s   &  r   test_dict_nested_renaming_deprrp   j   s_    	Cq3*	+B -C	)	5	5S5%.#u~FG 
6	5	5	5s   A##A4	c                     \        R ^./4      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W 4      ! V4       RRR4       R#   + '       g   i     R# ; i)r"   zLabel\(s\) \['B'\] do not existr   N)r   r*   r+   KeyErrorrY   )rS   rU   r[   r/   s   &&  r   test_missing_columnrs   t   sF     S1#J
C
,C	xs	+	+T" 
,	+	+	+s   AA"	c            
          \        R R./4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P	                  R \
        ^\        R\
        /4       RRR4       R#   + '       g   i     R# ; i)r=   1z"Label\(s\) \[1, 'b'\] do not existr   bN)r   r*   r+   rr   rT   intstrr@   s     r   'test_transform_mixed_column_name_dtypesry   ~   sP    	C#<	 B
/C	xs	+	+
c33S12 
,	+	+	+s   $A##A4	z	how, args	nsmallestr=   rv   c                     \        R ^^.R^^./4      pRV  R2p\        P                  ! \        VR7      ;_uu_ 4        VP	                  V ^VR7       RRR4       R#   + '       g   i     R# ; i)r=   rv   z
Operation z does not support axis=1r   )r   argsNr?   )howr|   r.   r/   s   &&  r   test_apply_str_axis_1_raisesr~      s`    
 
C!Qq!f-	.Bse3
4C	z	-	-
14( 
.	-	-	-s   AA.	c                      R p \         P                  ! \        V R7      ;_uu_ 4        \        ^.4      P	                  R^R7       RRR4       R#   + '       g   i     R# ; i)z&No axis named 1 for object type Seriesr   rV   r   N)r*   r+   r,   r   rT   )r/   s    r   test_transform_axis_1_raisesr      s@    
2C	z	-	-se!, 
.	-	-	-s   AA 	c                  4   \        R . ROR. ROR. ROR\        P                  P                  ^4      P	                  ^4      R\        P                  P                  ^4      P	                  ^4      R\        P                  P                  ^4      P	                  ^4      /4      p \        P
                  V P                  R&   R pRp\        P                  ! \        VR7      ;_uu_ 4        V P                  V^R	7       R
R
R
4       R
#   + '       g   i     R
# ; i)r"   r#   r$   DEFc                 h    V R ,          P                  R4      '       d   V R,          R8X  d   ^V R&   V # )r$   shinr"   r	   r   )
startswith)rows   &r   rT   .test_apply_modify_traceback.<locals>.transform   s0    s8v&&3s8u+<CH
r   z,'float' object has no attribute 'startswith'r   r   N)r	   r	   r	   r	   r`   r`   r`   r`   r	   r	   r	   )oner   r   twor   r   r   r   r   r   r   )dullr   shinyr   r   r   r   r   r   r   r   )r7   r$   )r   r&   rj   rk   rl   nanlocr*   r+   AttributeErrorr-   )datarT   r/   s      r   test_apply_modify_tracebackr      s          &&q)99"=&&q)99"=&&q)99"=U+	
-D^ vvDHHV
 9C	~S	1	1

91
% 
2	1	1	1s   (DD	zdf, func, expectedcumprodc           	      z   V'       d	   V\         3pR p\        V\        4      '       d   RM\        p\        P
                  ! W%R7      ;_uu_ 4        \        P                  ! VRR7      ;_uu_ 4        V P                  WR7       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)zcan't multiply sequence by non-int of type 'str'|cannot perform cumprod with type str|operation 'cumprod' not supported for dtype 'str'Nr   zusing DataFrame.cumprodr   )	NotImplementedError
isinstancerx   FutureWarningr*   r+   tmassert_produces_warningrD   )r.   rU   expectedr   using_infer_stringr/   warns   &&&&&  r   "test_agg_cython_table_raises_framer      s     12	= 
 dC((4mD	x	+	+''4MNNFF4F# O 
,	+NN 
,	+	+s$   !B)1B	B)B&!B))B:	zseries, func, expectedza b cprodstdvarmedianc           	         R pVR8X  g)   V\         P                  J g   V\         P                  J d   RpV'       d   VR8X  d	   V\        3pVR,           p\	        V\
        4      '       d   RM\        p\        P                  ! W$R7      ;_uu_ 4        \        P                  ! VRR7      ;_uu_ 4        V P                  V4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)z?[Cc]ould not convert|can't multiply sequence by non-int of typer   z)Cannot convert \['a' 'b' 'c'\] to numericr   zG|does not support|has no kernel|Cannot perform|cannot perform|operationNr   zis currently using Series.*)r&   	nanmedianr   r   r   rx   r   r*   r+   r   r   rD   )rc   rU   r   r   r/   r   s   &&&&  r   #test_agg_cython_table_raises_seriesr      s    $ MCx42<</42993D:di/12 	WW  dC((4mD	x	+	+''4QRRJJt S 
,	+RR 
,	+	+s$   !C)2C	C)C&!C))C:	c                      \        R R./4      p \        P                  ! R4      p\        P                  ! \
        VR7      ;_uu_ 4        V P                  R R /4       RRR4       R#   + '       g   i     R# ; i)r=   Nzint() argument must be a stringr   c                 :    \        V P                  ^ ,          4      # r   rw   ilocr   s   &r   r   'test_agg_none_to_type.<locals>.<lambda>  s    s166!9~r   )r   reescaper*   r+   rC   rD   r@   s     r   test_agg_none_to_typer     sS    	C$=	!B
))5
6C	y	,	,
-./ 
-	,	,	,s   	A((A9	c                      \        R R./4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P	                  R R /4       RRR4       R#   + '       g   i     R# ; i)r=   Nzargument must be ar   c                 :    \        V P                  ^ ,          4      # r   r   r   s   &r   r   -test_transform_none_to_type.<locals>.<lambda>  s    S^r   )r   r*   r+   rC   rT   r@   s     r   test_transform_none_to_typer     sI    	C$=	!B
C	y	,	,
c345 
-	,	,	,s   AA%	c                 R    \         P                  ! ^^.4      P                  R^4      # )r   r    )r&   arrayr)   r   s   &r   r   r   !  s    "((Aq6"**2q1r   c                 
    ^^.# r   r   r   s   &r   r   r   "  s    1a&r   c                     \        ^^.4      # r   )r   r   s   &r   r   r   #  s    &!Q.r   c           	      V   \        \        P                  ! \        P                  ! ^RR7      ^4      P	                  ^R	4      ^,           . R
OR7      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   r   r   r   z2too many dims to broadcast|cannot broadcast resultr   	broadcastr   Nr    r!   r%   )rU   r.   r/   s   &  r   test_apply_broadcast_errorr     su     

		!7+Q/772>B
B ?C	z	-	-
A;7 
.	-	-	-s   8BB(	c           	      ,   R p\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4        VP                  RR.V R7       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)z3cannot combine transform and aggregation operationsr   ignoreallr_   sqrtr   Nr*   r+   r,   r&   errstaterD   )r   float_framer/   s   && r   test_transform_and_agg_err_aggr   2  s[    
?C	z	-	-[[X&&OOUFO$O7 ' 
.	-&& 
.	-	-s#    BA/	B/A?:BB	zignore::FutureWarningz	func, msgr   z(cannot combine transform and aggregationz2cannot perform both aggregation and transformationc           	          \         P                  ! \        VR 7      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4        V P                  V4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)r   r   r   Nr   string_seriesrU   r/   s   &&&r   !test_transform_and_agg_err_seriesr   :  sR     
z	-	-[[X&&d# ' 
.	-&& 
.	-	-s#    A<A)	A<)A94A<<B	c                     R p\         P                  ! \        VR7      ;_uu_ 4        VP                  W R7       RRR4       R#   + '       g   i     R# ; i)Function did not transformr   r   Nr*   r+   r,   rT   )r   r   rU   r/   s   &&& r   test_transform_wont_agg_framer   L  s:     'C	z	-	-d. 
.	-	-	-s   AA	c                     R p\         P                  ! \        VR7      ;_uu_ 4        V P                  V4       RRR4       R#   + '       g   i     R# ; i)r   r   Nr   r   s   && r   test_transform_wont_agg_seriesr   U  s7     'C	z	-	-% 
.	-	-	-s   AA	
op_wrapperc                     V # r5   r   r   s   &r   r   r   `  s    Qr   c                     V .# r5   r   r   s   &r   r   r   `  s    1#r   c                 
    R V /# r"   r   r   s   &r   r   r   `  s    #qr   c                     R V ./# r   r   r   s   &r   r   r   `  s    cTUSVZr   c                    V! V 4      p\        R . RO/4      p\        P                  ! WA4      pRp\        P                  ! \
        VR7      ;_uu_ 4        VP                  V4       RRR4       R#   + '       g   i     R# ; i)r"   r   r   Nr   )r   r   get_objr*   r+   r,   rT   )all_reductionsrZ   r   opr[   r/   s   &&&   r   test_transform_reducer_raisesr   _  s\    
 
N	#B
S)$
%C
**S
*C
&C	z	-	-b 
.	-	-	-s   A00B	c                     \        R . ROR. RO/. ROR7      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P	                  RR RR /^ R	7       R
R
R
4       Rp\        P                  ! \        VR7      ;_uu_ 4        V P	                  R R RR /^R	7       R
R
R
4       R
#   + '       g   i     LZ; i  + '       g   i     R
# ; i)r	   r`   r"   r#   r2   z$Label\(s\) \['A', 'B'\] do not existr   c                     V ^,           # r   r   r   s   &r   r   6test_transform_missing_labels_raises.<locals>.<lambda>s  s    QUr   c                     V ^,          # r   r   r   s   &r   r   r   s  s    1q5r   r   Nz(Label\(s\) \['bar', 'foo'\] do not existc                     V ^,           # r   r   r   s   &r   r   r   w  s    q1ur   c                     V ^,          # r   r   r   s   &r   r   r   w  s    q1ur   )r   r7   r9   r   r!   )r   r*   r+   rr   rT   r@   s     r   $test_transform_missing_labels_raisesr   n  s    	E9eY7	OB
1C	xs	+	+
c?CAJ 
, 6C	xs	+	+
e_e_EAN 
,	+	 
,	+ 
,	+	+s   B*B=*B:	=C	)r-   rD   rT   )
pct_changer   )tailr   )/	itertoolsr   r   numpyr&   r*   pandas.errorsr   pandasr   r   r   pandas._testing_testingr   markparametrizer0   rA   rE   rO   rR   r\   rf   rn   rp   rs   ry   r~   r   r   get_cython_table_paramsrC   r   splitr   r   r   r   r   filterwarningsr   r   r   r   r   r   r   r   r   <module>r      s    	   , 
  
3G 4G!- *VTN;1 <1 #@A3e"5cE7^7L!MN# O B# eU^uueneeV_MN	- E;#78H 9H #@A3,ug!?@# A B#3 ${Qc
O&DkR))-9&x C:Sz*+y).D-E$$  	
""7==?###	"	"9%I&
	
 ! (06 
1 	8	88 34
%DEBGGUE*@	
	$	 5$ 5%.5&/!BC/ D/ 5%.65/!BC& D& ;/ACWX			Or   