+
    xȇi%              
          ^ RI t^ RIt^ RIHtHtHtHtHtH	t	H
t
 ^ RIHt ^ RIHt ]P                   P#                  R. R#O4      R 4       t]P                   P#                  RRR.4      R	 4       t]P                   P#                  RRR.4      ]P                   P#                  R
^]P(                  ^.]	! R4      ]]	! R4      ..4      R 4       4       t]P                   P#                  R
^]P(                  ^.]	! R4      ]]	! R4      ..4      R 4       t]P                   P#                  R
^]P(                  ^.]	! R4      ]]	! R4      ..4      R 4       t]P                   P#                  RRR.4      ]P                   P#                  RRR.4      R 4       4       tR tR tR tR tR tR tR tR t R t!R t"R t#R t$R  t%R! t&]P                   P#                  R. R$O4      R" 4       t'R# )%    N)NA	DataFrameIntervalNaTSeries	Timestampinterval_range)	get_arraymethodc                    \        R ^^./4      pVP                  4       pV R8X  dG   RV  2p\        P                  ! \        VR7      ;_uu_ 4        VP                  V R7       RRR4       R# VP                  V R7      p\        P                  ! \        VR 4      \        VR 4      4      '       g   Q hVP                  VP                  Jg   Q hVP                  VP                  Jg   Q h^dVP                  R&   \        P                  ! \        VR 4      \        VR 4      4      '       d   Q h\        P                  ! W4       R#   + '       g   i     R# ; i)apadz Can not interpolate with method=match)r   Nr   r   )r   copypytestraises
ValueErrorinterpolatenpshares_memoryr
   indexcolumnsiloctmassert_frame_equal)r   dfdf_origmsgresults   &    y/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/copy_view/test_interp_fillna.pytest_interpolate_no_opr#      s   	C!Q=	!BggiG09]]:S11NN&N) 21 v.	&# 6	"c8JKKKK||288+++~~RZZ///D##Ifc$:Ib#<NOOOO
b* 211s   EE	funcffillbfillc                    \        R ^^./4      pVP                  4       p\        W4      ! 4       p\        P                  ! \        VR 4      \        VR 4      4      '       g   Q hVP                  VP                  Jg   Q hVP                  VP                  Jg   Q h^dVP                  R&   \        P                  ! \        VR 4      \        VR 4      4      '       d   Q h\        P                  ! W4       R# )r   Nr   )r   r   getattrr   r   r
   r   r   r   r   r   )r$   r   r   r!   s   &   r"   test_interp_fill_functionsr)   &   s     
C!Q=	!BggiGR FIfc2Ib#4FGGGG<<rxx'''>>+++FKK	&# 6	"c8JKKKK"&    valsz
2019-12-31z
2020-12-31c                     \        R V /4      p\        W!4      ! 4       p\        P                  ! \	        VR 4      \	        VR 4      4      '       d   Q hVP
                  P                  ^ 4      '       g   Q hR# )r   N)r   r(   r   r   r
   _mgr_has_no_reference)r+   r$   r   r!   s   &&  r"   test_interpolate_triggers_copyr/   7   sa    
 
C;	BR F	&# 6	"c8JKKKK;;((++++r*   c                     \        R V /4      p\        VR 4      pVP                  RRR7       \        P                  ! V\        VR 4      4      '       g   Q hVP
                  P                  ^ 4      '       g   Q hR# )r   linearTr   inplaceN)r   r
   r   r   r   r-   r.   )r+   r   arrs   &  r"   -test_interpolate_inplace_no_reference_no_copyr5   D   si     
C;	B
B
CNN(DN1C2s!3444477$$Q''''r*   c                    \        R ^\        P                  ^./4      pVP                  4       p\	        VR 4      pVR,          pVP                  RRR7       \        P                  ! V\	        VR 4      4      '       d   Q h\        P                  ! W$4       VP                  P                  ^ 4      '       g   Q hVP                  P                  ^ 4      '       g   Q hR# )r   NNNr1   Tr2   N)r   r   nanr   r
   r   r   r   r   r-   r.   )r+   r   r   r4   views   &    r"   "test_interpolate_inplace_with_refsr:   Q   s     
C!RVVQ(	)BggiG
B
Ca5DNN(DN1 Yr3%78888'(77$$Q''''99&&q))))r*   dtypefloat64Float64c                    \        R ^\        P                  ^./VR7      pVP                  4       p\	        VR 4      pVR,          p\        W 4      ! RR7       \        P                  ! V\	        VR 4      4      '       d   Q h\        P                  ! W54       VP                  P                  ^ 4      '       g   Q hVP                  P                  ^ 4      '       g   Q hR# )r   r;   r7   Tr3   N)r   r   r8   r   r
   r(   r   r   r   r-   r.   )r$   r;   r   r   r4   r9   s   &&    r"   "test_interp_fill_functions_inplacerA   b   s     
C!RVVQ(	6BggiG
B
Ca5DBd# Yr3%78888'(77$$Q''''99&&q))))r*   c                  *   \        R R \        P                  R.R^/4      p V R ,          P                  \        4      V R &   Rp\
        P                  ! \        VR7      ;_uu_ 4        V P                  4        RRR4       R#   + '       g   i     R# ; i)r   cbz.DataFrame cannot interpolate with object dtyper   N)	r   r   r8   astypeobjectr   r   	TypeErrorr   )r   r    s     r"   )test_interpolate_cannot_with_object_dtyperH   u   se    	C#rvvs+S!4	5BgnnV$BsG
:C	y	,	,
 
-	,	,	,s   &BB	c                     \        R . ROR^/4      p V R ,          P                  \        4      V R &   \        V R 4      pV P                  P                  ^ 4      '       g   Q h\        P                  ! V\        V R 4      4      '       g   Q hR# )r   rD   N)r   rD   rC   )r   rE   rF   r
   r-   r.   r   r   )r   arr_as     r"   %test_interpolate_object_convert_no_oprK   ~   st    	C#q1	2BgnnV$BsGb#E 77$$Q''''E9R#56666r*   c                     \        R ^\        P                  R.R^/4      p \        V R 4      pRp\        P
                  ! \        VR7      ;_uu_ 4        V P                  RRR7       RRR4       V P                  P                  ^ 4      '       g   Q h\        P                  ! V\        V R 4      4      '       g   Q hR#   + '       g   i     L^; i)	r         @rD   #Can not interpolate with method=padr   r   Tr2   N)r   r   r8   r
   r   r   r   r   r-   r.   r   )r   rJ   r    s      r"   &test_interpolate_object_convert_copiesrO      s    	C!RVVS)32	3Bb#E
/C	z	-	-
eT2 
. 77$$Q''''E9R#56666	 
.	-s   B==C	c            	          \        R ^\        P                  R.R^/4      p V P                  4       p\	        V R 4      pV R,          pRp\
        P                  ! \        VR7      ;_uu_ 4        V P                  RRR7       V P                  P                  ^ 4      '       g   Q h\        P                  ! V\	        V R 4      4      '       d   Q h R	R	R	4       \        P                  ! W4       R	#   + '       g   i     L(; i)
r   rM   rD   r7   rN   r   r   Tr2   N)r   r   r8   r   r
   r   r   r   r   r-   r.   r   r   r   )r   r   rJ   r9   r    s        r"   1test_interpolate_downcast_reference_triggers_copyrQ      s    	C!RVVS)32	3BggiGb#Ea5D
/C	z	-	-
eT2ww((++++##E9R+=>>>>> 
.
 '( 
.	-s   ,A C--C=	c                     \        R R\        P                  .R^/4      p V P                  4       pV P	                  R4      p\        P
                  ! \        V R4      \        VR4      4      '       g   Q hVP                  V P                  Jg   Q hVP                  V P                  Jg   Q h^dVP                  R&   \        P                  ! W4       R# )r         ?rD         @Nr      )r   r   r8   r   fillnar   r
   r   r   r   r   r   r   r   df2s      r"   test_fillnarZ      s    	C#rvvQ/	0BggiG
))C.CIb#.	#s0CDDDD99BHH$$$;;bjj(((CHHTN'&r*   c                     \        R R\        P                  .R^/4      p V P                  4       pV P	                  R R/4      p\        P
                  ! \        V R4      \        VR4      4      '       g   Q h\        P
                  ! \        V R 4      \        VR 4      4      '       d   Q h^dVP                  R&   \        P                  ! W4       R# )r   rS   rD         Y@NrU   )
r   r   r8   r   rW   r   r
   r   r   r   rX   s      r"   test_fillna_dictr]      s    	C#rvvQ/	0BggiG
))S%L
!CIb#.	#s0CDDDD	"c 2Ic34GHHHHCHHTN'&r*   c                     \        R R\        P                  .R^/4      p \        V R 4      p\        V R4      pV P	                  RRR7       \        P
                  ! \        V R 4      V4      '       g   Q h\        P
                  ! \        V R4      V4      '       g   Q hV P                  P                  ^ 4      '       g   Q hV P                  P                  ^4      '       g   Q hR# )r   rS   rD   rT   Tr@   N)r   r   r8   r
   rW   r   r-   r.   )r   rJ   arr_bs      r"   test_fillna_inplacer`      s    	C#rvvQ/	0Bb#Eb#EIIc4I Ib#.6666Ib#.666677$$Q''''77$$Q''''r*   c                  v   \        R R\        P                  .R^/4      p V P                  4       p\	        V R 4      p\	        V R4      pV R,          pV P                  RRR7       \        P                  ! \	        V R 4      V4      '       d   Q h\        P                  ! \	        V R4      V4      '       g   Q hVP                  P                  ^ 4      '       g   Q hV P                  P                  ^ 4      '       g   Q h\        P                  ! WA4       \        R RR.R^/4      p\        P                  ! W4       R# )r   rS   rD   r7   rT   Tr@   N)r   r   r8   r   r
   rW   r   r-   r.   r   r   )r   r   rJ   r_   r9   expecteds         r"   test_fillna_inplace_referencerc      s   	C#rvvQ/	0BggiGb#Eb#Ea5DIIc4I 	"c 2E::::Ib#.666699&&q))))77$$Q''''$(#Sz323H"'r*   c                     \        \        ^ ^R7      RRR7      p \        P                  V P                  ^&   V P                  4       pV R,          pV P                  \        ^ ^R7      RR7       \        P                  ! \        V R4      P                  P                  \        VR4      P                  P                  4      '       d   Q h\        P                  ! W!4       R	# )
r   )startendr   zinterval[float64, right])namer;   r7   )leftrightT)valuer3   N)r   r	   r   r8   r   r   rW   r   r   r
   rh   valuesr   assert_series_equal)serser_origr9   s      r"   &test_fillna_interval_inplace_referencero      s    
QA&S8RC &&CHHQKxxzHq6DJJX1A.J=#s  ''4)=)B)B)I)I    4*r*   c                  ,   \        ^\        P                  ^.4      p V P                  4       pV P	                  / 4      p\        P
                  ! \        V 4      \        V4      4      '       g   Q hRV P                  ^ &   \        P                  ! W4       R# )rV   r\   N)
r   r   r8   r   rW   r   r
   r   r   rl   )rm   rn   r!   s      r"   test_fillna_series_empty_argrq      sk    
!RVVQ
 CxxzHZZ^FIcNIf,=>>>>CHHQK8,r*   c                     \        ^\        P                  ^.4      p \        V 4      pV P	                  / RR7       \        P
                  ! \        V 4      V4      '       g   Q hV P                  P                  ^ 4      '       g   Q hR# )rV   Tr@   N)r   r   r8   r
   rW   r   r-   r.   )rm   r4   s     r"   $test_fillna_series_empty_arg_inplacers      sg    
!RVVQ
 C
C.CJJr4J IcNC000088%%a((((r*   c                    \        R ^\        ^.R^/V R7      pVP                  4       pVP                  ^d4      p\        P
                  ! \        VR 4      \        VR 4      4      '       d   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q hVP                  P                  ^4      '       d   Q h\        P                  ! W!4       ^dVP                  R&   \        P
                  ! \        VR4      \        VR4      4      '       d   Q hVP                  P                  ^4      '       g   Q hVP                  P                  ^4      '       g   Q h\        P                  ! W!4       R# )r   rD   r?   NrU   )r   r   r   rW   r   r   r
   r-   r.   r   r   r   )any_numeric_ea_and_arrow_dtyper   r   rY   s   &   r"   !test_fillna_ea_noop_shares_memoryrv      s%   	C!RS!,4R	SBggiG
))C.C	"c 2Ic34GHHHHIb#.	#s0CDDDDxx))!,,,,'&CHHTN	"c 2Ic34GHHHH88%%a((((77$$Q'''''&r*   c                 0   \        R ^\        ^.R^/V R7      pVP                  4       pVR,          pVP                  ^dRR7       \        P
                  ! \        VR 4      \        VR 4      4      '       d   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q hVP                  P                  ^4      '       d   Q hVP                  P                  ^4      '       d   Q h^dVP                  R&   \        P                  ! W#4       R# )r   rD   r?   r7   Tr@   NrU   )r   r   r   rW   r   r   r
   r-   r.   r   r   r   )ru   r   r   r9   s   &   r"   )test_fillna_inplace_ea_noop_shares_memoryrx     s    	C!RS!,4R	SBggiGa5DIIc4I 	"c 2IdC4HIIIIIb#.	$0DEEEEww((++++yy**1----BGGDM'(r*   c                     \        R ^\        P                  ^.R^/4      p V P                  4       p\        P
                  ! 4       ;_uu_ 4        V R ,          P                  ^dRR7       RRR4       \        P                  ! W4       \        P
                  ! 4       ;_uu_ 4        V R .,          P                  ^dRR7       RRR4       \        P                  ! W4       R#   + '       g   i     L; i  + '       g   i     L;; ir   rD   Tr@   N)r   r   r8   r   r   raises_chained_assignment_errorrW   r   )r   r   s     r"   test_fillna_chained_assignmentr|     s    	C!RVVQa0	1BggiG		+	+	-	-
3sD) 
."&		+	+	-	-
C5	d+ 
."& 
.	- 
.	-   C $C3 C0	3D	c                    \        R ^\        P                  ^.R^/4      pVP                  4       p\        P
                  ! 4       ;_uu_ 4        \        VR ,          V 4      ! RR7       RRR4       \        P                  ! W4       \        P
                  ! 4       ;_uu_ 4        \        VR .,          V 4      ! RR7       RRR4       \        P                  ! W4       R#   + '       g   i     L; i  + '       g   i     L;; irz   )r   r   r8   r   r   r{   r(   r   )r$   r   r   s   &  r"   #test_interpolate_chained_assignmentr   )  s    	C!RVVQa0	1BggiG		+	+	-	-3t, 
."&		+	+	-	-C5	4 . 
."& 
.	- 
.	-r}   )r   nearestr1   )r   r%   r&   )(numpyr   r   pandasr   r   r   r   r   r   r	   pandas._testing_testingr   pandas.tests.copy_view.utilr
   markparametrizer#   r)   r8   r/   r5   r:   rA   rH   rK   rO   rQ   rZ   r]   r`   rc   ro   rq   rs   rv   rx   r|   r    r*   r"   <module>r      s        1 #?@+ A+( '7!34' 5'  '7!34
a^i5sIl<STU, 5, 
a^i5sIl<STU(( 
a^i5sIl<STU** '7!349i"89* : 5*"77)
'	'	(("+"-)'$)	' !BC	' D	'r*   