+
    yȇi%                     v    ^ RI t^ RIt^ RIHtHtHtHt ^ RIH	t	  ! R R4      t
 ! R R4      t ! R R	4      tR# )
    N)NaTSparseDtype	Timestampisna)SparseArrayc                     a  ] tR t^t o ]P
                  P                  R. RORR3. RO^^ 3. RORR3.4      R 4       t]P
                  P                  R. RORR3. RO^^ 3. RORR3.4      R 4       t]P
                  P                  R. RORR3. RO^^ 3. RORR3.4      R	 4       t	]P
                  P                  R. RORR3. RO^^ 3. RORR3.4      R
 4       t
R t]P
                  P                  R^ ^]P                  ^.. RO.4      ]P
                  P                  R^ ^]P                  .4      ]P
                  P                  RR^]P                  3.4      R 4       4       4       tR tR tR tR tRtV tR# )TestReductionszdata,pos,negTF      ?       @        c                *   \        V4      P                  4       pV'       g   Q h\        WR 7      P                  4       pV'       g   Q hW1^&   \        V4      P                  4       pV'       d   Q h\        WR 7      P                  4       pV'       d   Q hR# 
fill_valueN)r   allselfdataposnegouts   &&&& z/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/arrays/sparse/test_reductions.pytest_allTestReductions.test_all   u     $##%
s$/335
sQ$##%w$/335w3    c                J   \         P                  ! \        V4      4      pV'       g   Q h\         P                  ! \        WR 7      4      pV'       g   Q hW1^&   \         P                  ! \        V4      4      pV'       d   Q h\         P                  ! \        WR 7      4      pV'       d   Q hRp\        P                  ! \
        VR7      ;_uu_ 4        \         P                  ! \        V4      \         P                  ! . 4      R7       RRR4       R#   + '       g   i     R# ; ir   $the 'out' parameter is not supportedmatchr   N)npr   r   pytestraises
ValueErrorarrayr   r   r   r   r   msgs   &&&&  r   test_numpy_allTestReductions.test_numpy_all%   s     ff[&'
sff[67
sQff[&'wff[67w 5]]:S11FF;t$"((2,7 2111s   6DD"	c                *   \        V4      P                  4       pV'       g   Q h\        WR 7      P                  4       pV'       g   Q hW1^&   \        V4      P                  4       pV'       d   Q h\        WR 7      P                  4       pV'       d   Q hR# r   )r   anyr   s   &&&& r   test_anyTestReductions.test_anyA   r   r   c                "   \         P                  ! \        V4      4      pV'       g   Q h\         P                  ! \        WR 7      4      pV'       g   Q hW1^&   \         P                  ! \        V4      4      pV'       d   Q h\         P                  ! \        WR 7      4      pV'       d   Q hRp\        P                  ! \
        VR7      ;_uu_ 4        \         P                  ! \        V4      VR7       RRR4       R#   + '       g   i     R# ; ir   )r#   r-   r   r$   r%   r&   r(   s   &&&&  r   test_numpy_anyTestReductions.test_numpy_anyX   s     ff[&'
sff[67
sQff[&'wff[67w4]]:S11FF;t$#. 2111s   "C==D	c                n   \         P                  ! ^
4      P                  \        4      p\	        V4      P                  4       pVR8X  g   Q h\         P                  V^&   \	        V^R7      P                  4       pVR8X  g   Q h\	        V\         P                  R7      P                  4       pVR8X  g   Q hR# )
        F@r         D@N)r#   arangeastypefloatr   sumnanr   r   r   s   &  r   test_sumTestReductions.test_sums   s    yy}##E*$##%d{{&&Q$1-113d{{$2662668d{{r   arrr   zmin_count, expectedc                    \        \        P                  ! V4      VR 7      pVP                  VR7      p\        P                  ! V4      '       d!   \        P                  ! V4      '       g   Q hR# Wd8X  g   Q hR# )r   	min_countN)r   r#   r'   r:   isnan)r   r?   r   rB   expectedsparrayresults   &&&&&  r   test_sum_min_count!TestReductions.test_sum_min_count   sX     bhhsm
Cy188H88F####%%%r   c                    \        R R.^,          \        P                  RR7      pVP                  ^R7      pV^8X  g   Q hVP                  ^R7      p\	        V4      '       g   Q hR# )FT)dtyper   rA   N)r   r#   bool_r:   r   )r   	spar_boolress   &  r   test_bool_sum_min_count&TestReductions.test_bool_sum_min_count   sV     1dS	mmam(axxmmbm)Cyyyr   c                <   \         P                  ! ^
4      P                  \        4      p\         P                  ! \        V4      4      pVR8X  g   Q h\         P                  V^&   \         P                  ! \        V^R7      4      pVR8X  g   Q h\         P                  ! \        V\         P                  R7      4      pVR8X  g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        \         P                  ! \        V4      \         P                  R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        \         P                  ! \        V4      VR	7       RRR4       R#   + '       g   i     Lb; i  + '       g   i     R# ; i)
r4   r5   r   r6   &the 'dtype' parameter is not supportedr    rJ   Nr   r"   )r#   r7   r8   r9   r:   r   r;   r$   r%   r&   int64r   r   r   r)   s   &   r   test_numpy_sumTestReductions.test_numpy_sum   s   yy}##E*ff[&'d{{&&Qff[!45d{{ff["&&9:d{{6]]:S11FF;t$BHH5 2 5]]:S11FF;t$#. 21	 21 211s   -0E7"F
7F	
F	c                   \         P                  ! ^
4      P                  \        4      p\	        V4      P                  4       pVR8X  g   Q h\         P                  V^&   \	        V4      P                  4       pVR8X  g   Q hR# )r4         @Nrq@)r#   r7   r8   r9   r   meanr;   r<   s   &  r   	test_meanTestReductions.test_mean   se    yy}##E*$$$&czz&&Q$$$&hr   c                   \         P                  ! ^
4      P                  \        4      p\         P                  ! \        V4      4      pVR8X  g   Q h\         P                  V^&   \         P                  ! \        V4      4      pVR8X  g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        \         P                  ! \        V4      \         P                  R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        \         P                  ! \        V4      VR7       RRR4       R#   + '       g   i     Lb; i  + '       g   i     R# ; i)	r4   rX   rQ   r    rR   Nr   r"   rY   )r#   r7   r8   r9   rZ   r   r;   r$   r%   r&   rS   rT   s   &   r   test_numpy_meanTestReductions.test_numpy_mean   s    yy}##E*ggk$'(czz&&Qggk$'(h6]]:S11GGK%RXX6 2 5]]:S11GGK%3/ 21	 21 211s   30D="E=E	E!	 N)TTT)      ra   )r
   r   r
   )FTF)r   rb   r   )r   r   r   )r   ra   ra   )   rb   )__name__
__module____qualname____firstlineno__r$   markparametrizer   r*   r.   r1   r=   r#   r;   rG   rN   rU   r[   r^   __static_attributes____classdictcell____classdict__s   @r   r	   r	      s    [[u-1c3'	
 [[u-1c3'	
88( [[!4/1c3'	
 [[!4/1c3'	
//&
 [[
Q	I& [[\Aq"&&>:[[2Va[4IJ& K ;	&/(0 0r   r	   c                     a  ] tR t^t o ]P
                  P                  R]P                  ! R4      ^.^ .3]P                  ! R4      ) ^ .R.3]P                  ! ^ ^^]P                  ^.4      ^.^ .3]P                  ! ]P                  .^,          4      ]P                  .]P                  .3]P                  ! . 4      ]P                  .]P                  .3.4      R 4       t]P
                  P                  RRR.4      R 4       tR t]P
                  P                  RRR	.4      ]P
                  P                  R
]P                  ! . 4      ]P                  ! ]P                  ]P                  .4      .4      ]P
                  P                  R]! ]P                  ]P                  4      ]P                  3]! ]P                  R4      ]P                  3]! R]4      ]3]! R]! R4      4      ]3.4      R 4       4       4       tRtV tR# )
TestMinMaxz"raw_data,max_expected,min_expectedg      @c                   \        V4      pVP                  4       pVP                  4       pWR9   g   Q hWc9   g   Q hVP                  R R7      pVP                  R R7      p\        P                  ! V4      P                  4       '       d?   \        P                  ! V4      '       g   Q h\        P                  ! V4      '       g   Q hR# WR9   g   Q hWc9   g   Q hR# )FskipnaN)r   maxminr#   rC   r-   )r   raw_datamax_expectedmin_expectedr?   
max_result
min_results   &&&&   r   test_nan_fill_valueTestMinMax.test_nan_fill_value   s     (#WWY
WWY
))))))WWEW*
WWEW*
88H!!##88J''''88J''''------r   z$fill_value,max_expected,min_expectedc                    \        \        P                  ! V^ ^.4      \        RV4      R7      pVP	                  4       pWR8X  g   Q hVP                  4       pWc8X  g   Q hR# )r   intrR   N)r   r#   r'   r   rs   rt   )r   r   rv   rw   r?   rx   ry   s   &&&&   r   test_fill_valueTestMinMax.test_fill_value   sZ     HHj!Q'(E:0N
 WWY
)))WWY
)))r   c                \   ^dp\        \        P                  ! WV.4      \        RV4      R7      p\	        VP
                  4      ^ 8X  g   Q hVP                  4       V8X  g   Q hVP                  4       V8X  g   Q hVP                  RR7      V8X  g   Q hVP                  RR7      V8X  g   Q hR# )d   r}   rR   Frq   N)r   r#   r'   r   len_valid_sp_valuesrs   rt   )r   fvr?   s   &  r   test_only_fill_valueTestMinMax.test_only_fill_value   s    "((BB<0E28NO3''(A---wwyBwwyBwwew$***wwew$***r   funcrt   rs   r   zdtype,expectedzdatetime64[ns]z
2018-05-05c                    \        W#R 7      p\        WQ4      ! 4       pV\        J d-   V\        J g!   \        P                  ! V4      '       g   Q hR# R# \        P
                  ! V4      '       g   Q hR# )rR   N)r   getattrr   r#   isnatrC   )r   r   r   rJ   rD   r?   rF   s   &&&&&  r    test_na_value_if_no_valid_values+TestMinMax.test_na_value_if_no_valid_values   sW     $,#%s?S=BHHV$4$444$4=88F####r   r`   N)r   r   r   )ra   r   )rd   re   rf   rg   r$   rh   ri   r#   r7   r'   r;   rz   r~   r   r   float64r   r   r   rj   rk   rl   s   @r   ro   ro      s    [[,YYs^aS1#&iin_qcB4(XXq!Q*+aS1#6XXrvvhl#bffXx8XXb\BFF8bffX.	
	.	.  [[.	
**+ [[VeU^4[[VbhhrlBHHbffbff=M4N%OP[[RVV,bff5S)2662)3/5)9\+BCSI		
$ Q 5$r   ro   c                   p  a  ] tR tRt o ]P
                  P                  R]! . RO4      ^^3]! . RO4      ^^3]! ]P                  ^^ ^ ]P                  R.4      ^^3]! ]P                  ^^ ^ ]P                  ^.4      ^^3]! ]P                  ^^ ^ ]P                  ^.RR7      ^^3]! ]P                  ^^ ^ ]P                  ^.^ R7      ^^3]! ]P                  ^^ ^ ]P                  ^.^R7      ^^3]! ]P                  ^^ ^ ]P                  ^.^R7      ^^3]! ]P                  ^^ ^ ]P                  ^.^R7      ^^3]! ^ .^
,          R.,           ^ R7      ^ ^
3]! ^ .^
,          R.,           RR7      ^ ^
3]! ^ .^
,          R.,           ^R7      ^ ^
3]! R.^ .^
,          ,           ^ R7      ^^ 3]! ^.^ .^
,          ,           ^ R7      ^ ^3]! R.^ .^
,          ,           RR7      ^^ 3]! ^.^ .^
,          ,           ^R7      ^ ^3.4      R 4       t
]P
                  P                  RRR.4      R 4       tR	tV tR
# )TestArgmaxArgmini  z#arr,argmax_expected,argmin_expectedr   c                f    VP                  4       pVP                  4       pWB8X  g   Q hWS8X  g   Q hR # )N)argmaxargmin)r   r?   argmax_expectedargmin_expectedargmax_resultargmin_results   &&&&  r   test_argmax_argmin#TestArgmaxArgmin.test_argmax_argmin  s2    , 



//////r   methodr   r   c                    R V R2p\        . 4      p\        P                  ! \        VR7      ;_uu_ 4        \	        W14      ! 4        RRR4       R#   + '       g   i     R# ; i)zattempt to get z of an empty sequencer    N)r   r$   r%   r&   r   )r   r   r)   r?   s   &&  r   test_empty_array!TestArgmaxArgmin.test_empty_array+  sE    x'<="o]]:S11C " 2111s   AA"	r`   N)ra   rb   r   ra   rb   )r   r   r   r   )rd   re   rf   rg   r$   rh   ri   r   r#   r;   r   r   rj   rk   rl   s   @r   r   r     sH    [[-)1a0,-q!4"&&!Q266267A>"&&!Q2661561="&&!Q26615"Eq!L"&&!Q26615!DaK"&&!Q26615!DaK"&&!Q26615!DaK"&&!Q26615!DaK!rRDQ7B?!rRDR8!R@!rRDQ7B?"bQ7A>!sRxA61="bR8!Q?!sRxA61=!	
*0+*0 [[X(';<# =#r   r   )numpyr#   r$   pandasr   r   r   r   pandas.core.arrays.sparser   r	   ro   r   r`   r   r   <module>r      s>       2t0 t0nH$ H$V!# !#r   