+
    xȇi                     N    R t ^ RIt^ RIt^ RIHtHtHt ^ RIH	t
  ! R R4      tR# )z[
Tests for DataFrame cumulative operations

See also
--------
tests.series.test_cumulative
N)	DataFrameSeries	Timestampc                      a  ] tR t^t o R tR tR tR t]P                  P                  R. R
O4      ]P                  P                  R^ ^.4      R 4       4       tRtV tR	# )TestDataFrameCumulativeOpsc                |   \        R \        P                  ! ^4      /\        P                  ! ^4      R7      pVP                  4        VP	                  4        VP                  4        \        \        P                  ! ^4      P                  ^^4      \        ^4      \        ^4      R7      pVP                  4        R# )A)index)r	   columnsN)r   nparangecummaxcummincumsumreshaperange)selfdfdms   &  r/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/test_cumulative.pytest_cumulative_ops_smoke4TestDataFrameCumulativeOps.test_cumulative_ops_smoke   ss    RYYr]+299R=A
		
		
		ryy},,Q2%(ERSHU
		    c                   \         P                  VP                  R&   \         P                  VP                  R&   \         P                  VP                  R&   VP                  ^ 4      P	                  \
        4      pVP                  ^ 4       VP                  ^4       VP                  ^ 4      P	                  \         P                  4      pVP                  ^ 4       VP                  ^4       R# )   
   NNr       :r      N   :r    NN   )r   nanilocfillnaastypeintcumprodint32)r   datetime_framer   s   && r   test_cumprod_smoke-TestDataFrameCumulativeOps.test_cumprod_smoke#   s    ')vvG$(*H%&(ffF# ""1%,,S1


1


1 ""1%,,RXX6


1


1r   c                2   \         P                  VP                  R&   \         P                  VP                  R&   \         P                  VP                  R&   \        W4      ! 4       pVP	                  \        \
        V4      4      p\        P                  ! W44       \        W4      ! ^R7      pVP	                  \        \
        V4      ^R7      p\        P                  ! W44       \         P                  ! V4      \         P                  ! V4      8X  g   Q hR# )r   axisNr   r   r"   )	r   r$   r%   getattrapplyr   tmassert_frame_equalshape)r   r+   all_numeric_accumulationsresultexpecteds   &&&  r   &test_cumulative_ops_match_series_applyATestDataFrameCumulativeOps.test_cumulative_ops_match_series_apply2   s     (*vvG$(*H%&(ffF# CE!''8Q(RS
f/ CK!''F56Q ( 
 	f/ xx288N#;;;;r   c           
     8   \        R . ROR. ROR. RO/4      pVP                  4       p\        R \        . RO\        P                  R7      R\        . RO\        P
                  R7      RVR,          P                  4       /4      p\        P                  ! W#4       R# )	r   BC)dtypeNr!   r#      )r!   r#   g      @TFF)r!   r@      )r   r   r   r   int64float64r3   r4   )r   r   r7   r8   s   &   r   test_cumsum_preserve_dtypes6TestDataFrameCumulativeOps.test_cumsum_preserve_dtypesH   st    Y[#?STUVIRXX6VIRZZ8RW^^%
 	f/r   methodr0   c                &   \        R . ROR. ROR. ROR. ROR\        R^^4      \        R^^4      \        R^^4      ./4      pVP                  RR.^R	7      p\        W14      ! VRR
7      p\        WA4      ! V4      p\        P
                  ! WV4       R# )r(   boolTstringfloatdatetimei  i  i  r/   )r0   numeric_onlyNr?   rA   )abc)g      ?g      @g      @)r   r   dropr1   r3   r4   )r   rG   r0   r   df_numeric_onlyr7   r8   s   &&&    r   test_numeric_only_flag1TestDataFrameCumulativeOps.test_numeric_only_flagW   s     y,/dAq)dAq)dAq)

 ''8Z"8q'A$$TB?3D9
f/r    N)r   r)   r   r   )__name__
__module____qualname____firstlineno__r   r,   r9   rE   pytestmarkparametrizerS   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s]     	<,0 [[X'PQ[[VaV,0 - R0r   r   )__doc__numpyr   rZ   pandasr   r   r   pandas._testing_testingr3   r   rU   r   r   <module>re      s-      
 W0 W0r   