+
    xȇiL                      R    ^ RI t^ RIt^ RIt^ RIHtHtHt ^ RIH	t
  ! R R4      tR# )    N)	DataFrameSeries
date_rangec                   V   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
tV tR# )TestDataFrameRoundc                $   \        4       p\        P                  ! WP                  4       4       \        R . R
OR. RO/4      p\        R . ROR. RO/4      p\        P                  ! VP                  4       V4       ^p\        R . ROR. RO/4      p\        P                  ! VP                  V4      V4       \        P                  ! \        P                  ! W4      V4       ^^.pRp\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       \        R . ROR. RO/4      pR ^R^/p\        P                  ! VP                  V4      V4       \        R . R
OR. RO/4      pR^/p\        P                  ! VP                  V4      V4       R^R^/p	\        P                  ! VP                  V	4      V4       R ^RR/p
Rp\
        P                  ! \        VR7      ;_uu_ 4        VP                  V
4       RRR4       R ^RR/p
\
        P                  ! \        VR7      ;_uu_ 4        VP                  V
4       RRR4       \        V
4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       R ^R^^./p
\
        P                  ! \        VR7      ;_uu_ 4        VP                  V
4       RRR4       \        V
4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       \        V
4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       \        V
4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       R RRR/pV^d,          p\        R . ROR. RO/4      p\        P                  ! VP                  V4      V4       \        R \        P                  R^/4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       \        P                  ! VR ,          P                  ^4      VR ,          4       ^p\        R . ROR. RO/4      pR	VP                  n        R	VP                  n        \        P                  ! VP                  V4      V4       \        P                  ! VR ,          P                  V4      VR ,          4       \        P                  ! VP                  V4      R ,          VR ,          4       R#   + '       g   i     ELK; i  + '       g   i     ELq; i  + '       g   i     ELA; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELp; i  + '       g   i     EL;; i  + '       g   i     EL; i)col1col2z4decimals must be an integer, a dict-like or a SeriesmatchNcol3g      ?z#Values in decimals must be integersfoocolsg+?gCl @gCl@gX9v?gZd;@gZd;	@      ?       @      @)gQ?g(\ @g(\@)gGz?gףp=
@gףp=
	@)皙?g @g@)g333333?皙@g	@)g     [@   i6  )g      Y@   i,  )r   tmassert_frame_equalroundnppytestraises	TypeErrorr   nanassert_series_equalcolumnsname)selfdfexpected_roundeddecimals
round_listmsg
round_dictexpected_partially_roundedpartial_round_dictwrong_round_dictnon_int_round_dictnon_int_round_Seriesnegative_round_dictbig_dfexpected_neg_roundednan_round_Seriess   &               u/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/methods/test_round.py
test_roundTestDataFrameRound.test_round   s    [
b((*-  5v?TUV %fov%WX
bhhj*:; $'1CD
 	bhhx02BC 	bhhr46FG V
D]]9C00HHZ  1 %_f.@A
 a+

bhhz24DE &/*FOD&
" %a[
bhh'9:<VW #Avq1
bhh'78:TU %a53]]9C00HH'( 1 %a7]]9C00HH'( 1  &&89]]9C00HH)* 1 %a!Q8]]9C00HH'( 1  &&89]]9C00HH)* 1  &&89]]9C00HH)* 1  &&89]]9C00HH)* 1  &r626c(&0AB 
 	fll+>?AUV "626661"=>]]9C00HH%& 1 	r&z//24DV4LM $'1CD
 !

(.  %
bhhx02BC 	r&z//9;KF;ST
rxx1&9;KF;STg 1000 100
 100 100
 100 100
 100 100 100sl   
U8U2<VVV.WW&W*	W>U/	2V	V	V+	.V?	W	W'	*W;	>X	c                ^   \        R R.RR..4      p\        P                  ! V^ R7      p\        RR.RR..4      p\        P                  ! W#4       R	p\
        P                  ! \        VR
7      ;_uu_ 4        \        P                  ! V^ VR7       RRR4       R#   + '       g   i     R# ; i){Gz?g(\?Q?g
ףp=
@)r*   r   r           g      @z$the 'out' parameter is not supportedr   )r*   outN)r   r   r   r   r   r    r!   
ValueError)r'   r(   r>   expectedr,   s   &    r7   test_round_numpy#TestDataFrameRound.test_round_numpy   s    ttTl34hhrA&sCj3*56
c,4]]:S11HHR!, 2111s   7BB,	c                p   \        R \        P                  R.4      P                  4       p\        P
                  ! R4      ;_uu_ 4        VP                  4       pRRR4       \        R\        P                  R.4      P                  4       p\        P                  ! XV4       R#   + '       g   i     LS; i)r;   r<   Nr   r=   )r   r   r#   to_framer   assert_produces_warningr   r   )r'   r(   resultr@   s   &   r7   test_round_numpy_with_nan,TestDataFrameRound.test_round_numpy_with_nan   sx    T2664()224''--XXZF .3,-668
fh/ .-s   	B%%B5	c                   \        R . ROR. R	OR\        R^R7      /4      p\        R . R
OR. R	OR\        R^R7      /4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        P
                  ! VP                  4       V4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        P
                  ! VP                  ^4      V4       RRR4       \        P
                  ! VP                  R ^/4      V4       \        P
                  ! VP                  R ^ /4      V4       \        P
                  ! VP                  R ^ R^/4      V4       \        P                  ! \        VR7      ;_uu_ 4        \        P
                  ! VP                  R^/4      V4       RRR4       R#   + '       g   i     EL5; i  + '       g   i     L; i  + '       g   i     R# ; i)r	   r
   r   20111111)periodszBobj.round has no effect with datetime, timedelta, or period dtypesr   N)r   r   gffffff
@g@)1acf)r   r   r   g      @)r   r   r   rE   UserWarningr   r   )r'   r(   round_0r,   s   &   r7   test_round_mixed_type(TestDataFrameRound.test_round_mixed_type   sp   ,,
:q9
 ,,
:q9
 S''3??!!"((*g6 @''3??!!"((1+r2 @
bhh{3R8
bhh{3W=
bhh61'=>H''3??!!"((FA;"7< @? @????
 @??s$   '&F99'G)G 9G
	G	 G1	c                   \        \        P                  P                  ^4      P                  ^^.4      . RO. ROR7      p\        P
                  ! W3^R7      pVP                  4       p\        P                  ! VP                  VP                  4       \        . R	O. R
O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)   )r%   index)axis)rV   z Index of decimals must be uniquer   N)ABC)firstsecondthird)   r   rU   )rX   rY   rX   )r   r   randomdefault_rngpdconcatr   r   assert_index_equalrV   r   r    r!   r?   )r'   r(   dfsroundedr*   r,   s   &     r7   !test_round_with_duplicate_columns4TestDataFrameRound.test_round_with_duplicate_columns   s     II!!!$++QF3#.
 iiq)))+
gmmSYY7)?;0]]:S11HHX 2111s   C((C9	c                    \        R . ROR. RO/4      p\        R . ROR. RO/4      p\        P                  ! \        V4      V4       R# )r	   r
   Nr   r   r   )r   r   r   r   )r'   r(   r)   s   &  r7   test_round_builtin%TestDataFrameRound.test_round_builtin   sD      5v?TUV %fov%WX
eBi)9:    c                   \         P                  ! R .^,          R.^,          ,           4      p\        \        P                  P                  ^4      P	                  R4      \        R4      R7      pVP                  ^4      pWn        VP                  4       P                  V4      pVP                  R8X  g   Q hVP                  ^4      pVP                  R8X  g   Q h\        P                  ! WS4       R# )lowhiabcr%   N)      )ra   CategoricalIndexr   r   r_   r`   listr   rV   copy	set_indexshaper   r   )r'   idxr(   r@   df_categoricalrF   s   &     r7    test_round_nonunique_categorical3TestDataFrameRound.test_round_nonunique_categorical   s    !!5'A+
":;ryy,,Q/66v>UT88A;,,S1##v---%%a(||v%%%
f/rk   c                    \         P                  ! \         P                  ! ^ ^4      4      p\        RR.RR..VR7      pVP	                  4       p\        RR.RR..VR7      p\
        P                  ! W44       R# )	r   gQ?r   g333333?g      ?rp   r   r=   N)ra   rs   interval_ranger   r   r   r   )r'   r%   r(   rF   r@   s   &    r7   $test_round_interval_category_columns7TestDataFrameRound.test_round_interval_category_columns   sj    %%b&7&71&=>sc4[17CsCj3*5wG
f/rk   c                t    \        4       pVP                  4       p\        P                  ! W4       WJg   Q hR # )N)r   r   r   r   )r'   r(   rF   s   &  r7   test_round_empty_not_input-TestDataFrameRound.test_round_empty_not_input   s.    [
b)rk    N)__name__
__module____qualname____firstlineno__r8   rA   rG   rR   rf   ri   rz   r~   r   __static_attributes____classdictcell__)__classdict__s   @r7   r   r      s:     oUb	-0=6$;00   rk   r   )numpyr   r    pandasra   r   r   r   pandas._testing_testingr   r   r   rk   r7   <module>r      s)       
 X  X rk   