+
    xȇi/                        ^ RI t^ RIt^ RIHtHtHtHtHt ^ RI	H
t ^ RIHt R tR tR tR tR tR	 tR
 tR t]P,                  P/                  RR R .4      R 4       tR t]P,                  P/                  RR R3R R3.4      R 4       tR tR tR t]P,                  P/                  R]R.4      R 4       tR t R# )    N)	DataFrameIndexSeriesconcatmerge)	get_arrayc                     \        R R.^,          /\        R7      p \        RR.^,          /\        R7      pV P                  4       p\        W.^R7      p\        P
                  ! \        VR 4      \        V R 4      4      '       g   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q hRVP                  R&   \        P
                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q hRVP                  R&   \        P
                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W4       R# )badtypeaxisdNr   r   r      )
r   objectcopyr   npshares_memoryr   iloctmassert_frame_equal)dfdf2df_origresults       u/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/copy_view/test_functions.pytest_concat_framesr       s6   	C##6	2B
S3%!)$F
3CggiGRIA&FIfc2Ib#4FGGGGIfc2Ic34GHHHHFKK	&# 6	"c8JKKKKIfc2Ic34GHHHHFKK	&# 6	#s8KLLLL"&    c                     \        R R.^,          /\        R7      p \        RR.^,          /\        R7      p\        W.^R7      p\        P                  ! \        VR 4      \        V R 4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q hVP                  4       pRV P                  R&   \        P                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q hRVP                  R&   \        P                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W#4       R# )r
   r   r   r   r   Nr   )
r   r   r   r   r   r   r   r   r   r   )r   r   r   expecteds       r   !test_concat_frames_updating_inputr$   !   s4   	C##6	2B
S3%!)$F
3CRIA&FIfc2Ib#4FGGGGIfc2Ic34GHHHH{{}HBGGDM	&# 6	"c8JKKKKIfc2Ic34GHHHHCHHTN	&# 6	#s8KLLLL&+r!   c                  0   \        ^^.RR7      p \        ^^.RR7      pV P                  4       pVP                  4       p\        W.^R7      p\        P                  ! \        VR4      V P                  4      '       g   Q h\        P                  ! \        VR4      VP                  4      '       g   Q h^dVP                  R&   \        P                  ! \        VR4      V P                  4      '       d   Q h\        P                  ! \        VR4      VP                  4      '       g   Q hRVP                  R&   \        P                  ! \        VR4      VP                  4      '       d   Q h\        P                  ! W4       \        P                  ! W4       R# )	r   r   namer
   r     Nr   r   )
r   r   r   r   r   r   valuesr   r   assert_series_equal)serser2ser_orig	ser2_origr   s        r   test_concat_seriesr/   3   s2   
!Qc
"C1a&s#DxxzH		ISKa(FIfc2CJJ????Ifc2DKK@@@@FKK	&# 6

CCCCIfc2DKK@@@@FKK	&# 6DDDD3)4+r!   c                     \        R . ROR. RO/4      p \        R. RO/4      p\        R. RO/4      p\        \        W.^R7      V.^R7      pVP                  4       p\        P                  ! \        VR 4      \        V R 4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h^dV P                  R	&   \        P                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P                  ! W44       R# )
r   r
   cr   r   Nr         )g?g?g333333?         r   )	r   r   r   r   r   r   r   r   r   )df1r   df3r   r#   s        r   test_concat_frames_chainedr;   G   s   
S)S/:
;C
S)$
%C
S)$
%CVSJQ/5A>F{{}HIfc2Ic34GHHHHIfc2Ic34GHHHHIfc2Ic34GHHHHCHHTN	&# 6	#s8KLLLL&+r!   c                     \        . RORR7      p \        . RORR7      p\        . RORR7      p\        \        W.^R7      V.^R7      pVP                  4       p\        P                  ! \        VR4      \        V R4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h^dV P                  ^ &   \        P                  ! \        VR4      \        V R4      4      '       d   Q h\        P                  ! W44       R# )	r   r   r&   r1   r   r   Nr2   r5   )	r   r   r   r   r   r   r   r   r   )ser1r,   ser3r   r#   s        r   test_concat_series_chainedr?   X   s   )#&D)#&D)#&DVTLq148qAF{{}HIfc2IdC4HIIIIIfc2IdC4HIIIIIfc2IdC4HIIIIDIIaL	&# 6	$8LMMMM&+r!   c                     \        ^^.RR7      p \        ^^.RR7      p\        R^^.R^^./4      p\        W.^R7      p\        P                  ! \        VR4      \        V R4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h^dV P                  ^ &   \        P                  ! \        VR4      \        V R4      4      '       d   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h\        P                  ! W24       RVP                  ^ &   \        P                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W24       R# )r   r   r&   r
   r   r(   N)	r   r   r   r   r   r   r   r   r   )r+   r,   r#   r   s       r   !test_concat_series_updating_inputrA   i   sD   
!Qc
"C1a&s#D#1vsQF34HSKa(FIfc2Ic34GHHHHIfc2IdC4HIIIICHHQK	&# 6	#s8KLLLLIfc2IdC4HIIII&+DIIaL	&# 6	$8LMMMM&+r!   c                     \        R . ROR^/4      p \        . RORR7      p\        W.^R7      pVP                  4       p\        P
                  ! \        VR 4      \        V R 4      4      '       g   Q h\        P
                  ! \        VR4      \        V R4      4      '       g   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q h^dVP                  ^ &   \        P
                  ! \        VR4      \        VR4      4      '       d   Q h^dV P                  R&   \        P
                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P                  ! W#4       R# )	r   r1   r   r&   r   Nr2   r5   r   )
r   r   r   r   r   r   r   r   r   r   )r   r+   r   r#   s       r   test_concat_mixed_series_framerC   |   s%   	CC+	,B

%CRIA&F{{}HIfc2Ib#4FGGGGIfc2Ib#4FGGGGIfc2Ic34GHHHHCHHQK	&# 6	#s8KLLLLBGGDM	&# 6	"c8JKKKK&+r!   c                  *   \        R ^^./4      p \        RRR./4      p\        W.^R7      p\        P                  ! \	        V R 4      \	        VR 4      4      '       g   Q h\        P                  ! \	        VR4      \	        VR4      4      '       g   Q hR# )r   r
   g      ?g      @r   N)r   r   r   r   r   r   r   r   s      r   test_concat_copy_keywordrF      s    	C!Q=	!B
S3*%
&CRIA&FIb#.	&#0FGGGGIc3/631GHHHHr!   funcc                 (    V P                   ! V3/ VB # Nr   r9   r   kwargss   &&,r   <lambda>rM      s    399S#;F#;r!   c                     \        W3/ VB # rI   rJ   rK   s   &&,r   rM   rM      s    5#<V#<r!   c                 @   \        R \        . RO\        R7      R. RO/4      p\        R \        . RO\        R7      R. RO/4      pVP                  4       pVP                  4       pV ! WR R7      p\        P
                  ! \        VR4      \        VR4      4      '       g   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q h\        P
                  ! \        VR 4      \        VR 4      4      '       g   Q h\        P
                  ! \        VR 4      \        VR 4      4      '       d   Q h^ VP                  R	&   \        P
                  ! \        VR4      \        VR4      4      '       d   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q h^ VP                  R
&   \        P
                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W4       \        P                  ! W$4       R# )keyr   r
   r   onNr   r
   r1   r2   r5   r   r   r3   )
r   r   r   r   r   r   r   r   r   r   )rG   r9   r   df1_origdf2_origr   s   &     r   test_merge_on_keyrW      s    UF?&A3	R
SC
UF?&A3	R
SCxxzHxxzH#u%FIfc2Ic34GHHHHIfc2Ic34GHHHHIfe4iU6KLLLL	&% 8)C:OPPPPFKK	&# 6	#s8KLLLLIfc2Ic34GHHHHFKK	&# 6	#s8KLLLL#(#(r!   c                  0   \        R . RO/4      p \        R. RO/4      pV P                  4       pVP                  4       p\        WRRR7      p\        P                  ! \        VR 4      \        V R 4      4      '       g   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h^ VP                  R&   \        P                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P                  ! \        VR4      \        VR4      4      '       g   Q h^ VP                  R&   \        P                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W4       \        P                  ! W4       R# )	r   r
   T
left_indexright_indexNr2   r5   r   r   )	r   r   r   r   r   r   r   r   r   )r9   r   rU   rV   r   s        r   test_merge_on_indexr\      s?   
S)$
%C
S)$
%CxxzHxxzH3$?FIfc2Ic34GHHHHIfc2Ic34GHHHHFKK	&# 6	#s8KLLLLIfc2Ic34GHHHHFKK	&# 6	#s8KLLLL#(#(r!   z	func, howc                     \        W3R R/VB # rR   rP   rJ   rK   s   &&,r   rM   rM          E#$Gu$G$Gr!   rightc                     \        W3R R/VB # r^   rJ   rK   s   &&,r   rM   rM      r_   r!   leftc                    \        R \        . RO\        R7      R. RO/4      p\        R \        RR.\        R7      R^^./4      pVP                  4       pVP                  4       pV ! W#VR7      p\        P
                  ! \        VR4      \        VR4      4      '       g   Q h\        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
                  ! \        VR 4      \        VR 4      4      VR8H  J g   Q h\        P
                  ! \        VR 4      \        VR 4      4      '       d   Q hVR8X  d   ^ VP                  R	&   M^ VP                  R
&   \        P
                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W$4       \        P                  ! W54       R# )rP   r   r
   r   )howrb   NrS   r2   r   rT   )r   r   r   r   r   r   r   _mgr_has_no_referencer   r   r   )rG   rd   r9   r   rU   rV   r   s   &&     r   test_merge_on_key_enlarging_onerg      s    UF?&A3	R
SC
UFC:V<cAq6J
KCxxzHxxzH#$FIfc2Ic34GHHHH	&# 6	#s8KLLLL88%%a((((88%%a((((Ife4iU6KLv   	&% 8)C:OPPPP
f}DD	&# 6	#s8KLLLL#(#(r!   c                  6   \        R ^^./4      p \        R^R./4      pV P                  VRRR7      p\        P                  ! \	        V R 4      \	        VR 4      4      '       g   Q h\        P                  ! \	        VR4      \	        VR4      4      '       g   Q hR# )r   r
   g      @TrY   Nr   r   r   r   r   rE   s      r   test_merge_copy_keywordrj      s    	C!Q=	!B
S1c(O
$CXXcdX=FIb#.	&#0FGGGGIc3/631GHHHHr!   c                     \        R . ROR. RO/4      p V P                  4       p\        R . ROR. RO/\        R7      p\        WR R7      p\        P
                  ! \        VR4      \        V R4      4      '       g   Q h\        P
                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P                  ! W4       \        W R R7      p\        P
                  ! \        VR4      \        V R4      4      '       g   Q h\        P
                  ! \        VR 4      \        V R 4      4      '       d   Q h\        P                  ! W4       R# )	r   r
   r1   r   rQ   Nr2   r5         	   )	r   r   r   r   r   r   r   r   r   )rb   	left_copyr`   r   s       r   test_merge_upcasting_no_copyrq      s   c9c956D		IsIsI6fEE43'FIfc2IdC4HIIII	&# 6	$8LMMMM$*53'FIfc2IdC4HIIII	&# 6	$8LMMMM$*r!   c                  :   \        R . ROR. RO/4      p \        R . ROR. RO/4      p\        WR RR7      p\        P                  ! \	        VR4      \	        V R4      4      '       g   Q h\        P                  ! \	        VR4      \	        VR4      4      '       g   Q hR# )	r   r
   r1   T)rR   	indicatorNr2   r5   rl   ri   )rb   r`   r   s      r   !test_merge_indicator_no_deep_copyrt     s    c9c956DsIsI67E43$7FIfc2IdC4HIIIIIfc2IeS4IJJJJr!   r   strc                    \        . R	ORV R7      p\        R . R
O/VP                  RR7      R7      p\        R. RO/VP                  RR7      R7      pVP                  4       pVP                  4       pVP                  VRR7      p\        P
                  ! \        VR 4      \        VR 4      4      '       g   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q h\        P
                  ! \        VP                  4      \        VP                  4      4      '       g   Q h\        P
                  ! \        VP                  4      \        VP                  4      4      '       d   Q h^ VP                  R&   \        P
                  ! \        VR 4      \        VR 4      4      '       d   Q h\        P
                  ! \        VR4      \        VR4      4      '       g   Q h^ VP                  R&   \        P
                  ! \        VR4      \        VR4      4      '       d   Q h\        P                  ! W$4       \        P                  ! W54       R# )r   r
   rP   r'   r   TdeepindexrQ   NrS   r2   r5   r   r   )r   r   r   joinr   r   r   r   r{   r   r   )r   df_indexr9   r   rU   rV   r   s   &      r   test_join_on_keyr~     s   _5>H
S)$HMMtM,D
EC
S)$HMMtM,D
ECxxzHxxzHXXceX$FIfc2Ic34GHHHHIfc2Ic34GHHHHIfll3Ysyy5IJJJJ	&,, 73999MNNNNFKK	&# 6	#s8KLLLLIfc2Ic34GHHHHFKK	&# 6	#s8KLLLL#(#(r!   c                     \        . R
OR\        R7      p \        R . RO/V P                  RR7      R7      p\        R. RO/V P                  RR7      R7      \        R. RO/V P                  RR7      R7      .pVP                  4       pV Uu. uF  qDP                  4       NK  	  ppVP	                  V4      p\
        P                  ! \        VR 4      \        VR 4      4      '       g   Q h\
        P                  ! \        VR4      \        V^ ,          R4      4      '       g   Q h\
        P                  ! \        VR4      \        V^,          R4      4      '       g   Q h\
        P                  ! \        VP                  4      \        VP                  4      4      '       g   Q h\
        P                  ! \        VP                  4      \        V^ ,          P                  4      4      '       d   Q h\
        P                  ! \        VP                  4      \        V^,          P                  4      4      '       d   Q h^ VP                  R&   \
        P                  ! \        VR 4      \        VR 4      4      '       d   Q h\
        P                  ! \        VR4      \        V^ ,          R4      4      '       g   Q h\
        P                  ! \        VR4      \        V^,          R4      4      '       g   Q h^ VP                  R&   \
        P                  ! \        VR4      \        V^ ,          R4      4      '       d   Q h\
        P                  ! \        VR4      \        V^,          R4      4      '       g   Q h^ VP                  R&   \
        P                  ! \        VR4      \        V^,          R4      4      '       d   Q h\        P                  ! W4       \        W%RR7       F  w  rG\        P                  ! WG4       K  	  R	# u upi )r   r
   r1   rP   rw   Trx   rz   )strictNrS   r2   r5   rl   r   r   rT   )r   r   r   r   r|   r   r   r   r{   r   r   r   zip)r}   r9   dfs_listrU   r   dfs_list_origr   r   s           r   $test_join_multiple_dataframes_on_keyr   )  s   _5?H
S)$HMMtM,D
EC3	"(--T-*BC3	"(--T-*BCH
 xxzH)122WWYM2XXhFIfc2Ic34GHHHHIfc2Ihqk34OPPPPIfc2Ihqk34OPPPPIfll3Ysyy5IJJJJ	&,, 78A;CTCT9UVVVV	&,, 78A;CTCT9UVVVVFKK	&# 6	#s8KLLLLIfc2Ihqk34OPPPPIfc2Ihqk34OPPPPFKK	&# 6	(1+s8STTTTIfc2Ihqk34OPPPPFKK	&# 6	(1+s8STTTT#(84@
b* A1 3s   P)!numpyr   pytestpandasr   r   r   r   r   pandas._testing_testingr   pandas.tests.copy_view.utilr   r    r$   r/   r;   r?   rA   rC   rF   markparametrizerW   r\   rg   rj   rq   rt   r   r~   r    r!   r   <module>r      s        1'$,$,(,",",&,$I 
;<)).)* 	GQ	GP))4I+K 65/2) 3)6#+r!   