+
    xȇi*                     V    R t ^ RIt^ RIt^ RIHtHtHtHtH	t	 ^ RI
Ht  ! R R4      tR# )z
test_insert is specifically for the DataFrame.insert method; not to be
confused with tests with "insert" in their names that are really testing
__setitem__.
N)	DataFrameIndex
MultiIndexNaT	Timestampc                   J   a  ] tR t^t o R tR tR tR tR tR t	R t
RtV tR	# )
TestDataFrameInsertc                V   \        \        P                  P                  ^4      P	                  R4      \        P
                  ! ^4      . ROR7      pVP                  ^ RVR,          4       \        P                  ! VP                  \        . RO4      4       \        P                  ! VR,          VR,          RR7       VP                  ^RVR,          4       \        P                  ! VP                  \        . RO4      4       \        P                  ! VR,          VR,          RR7       \        P                  ! \        R	R
7      ;_uu_ 4        VP                  ^RVR,          4       RRR4       Rp\        P                  ! \        VR
7      ;_uu_ 4        VP                  ^RVR,          4       RRR4       RVP                  n        VP                  ^ RVR,          4       VP                  P                   R8X  g   Q hR#   + '       g   i     L; i  + '       g   i     Lm; i)   cba)indexcolumnsfooF)check_namesbarzalready existsmatchNzcannot insert c, already exists	some_namebaz)      )r   r   r   )r   r   r   r   )r   r   r   r   r   )r   nprandomdefault_rngstandard_normalarangeinserttmassert_index_equalr   r   assert_series_equalassert_almost_equalpytestraises
ValueErrornameselfdfmsgs   &  w/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/indexing/test_insert.pytest_insertTestDataFrameInsert.test_insert   sn   II!!!$44V<))A,#
 			!UBsG$
bjj%0F*GH
r#w5	uE
		!UBsG$
bjj%0M*NO
r#w5	uE]]:-=>>IIabg& ? 0]]:S11IIabg& 2 &


		!UBsG$zz+--- ?> 21s   HHH	H(	c                   \        R RR./4      pVP                  / R7      pVP                  ^ R^^.4       VP                  / R7      p\        ^R.^R..RR .R7      p\        P                  ! W#4       VP                  ^ RRR.4       VP                  / R7      p\        . R	O. R
O.. ROR7      p\        P                  ! W#4       R# )r   皙?皙@r   r   r   ?ffffff@N)r2      r/   )r3   r
   r0   )r   r   r   )r   renamer   r   assert_frame_equal)r(   r)   resultexpecteds   &   r+   test_insert_column_bug_4032/TestDataFrameInsert.test_insert_column_bug_40320   s    c3Z()YYrY"
		!S1a&!2&q#hC1C:F
f/
		!S3*%2&m];_U
f/    c                    \        4       pVP                  ^ R. RORR7       VP                  ^ R. RORR7       VP                  ^ R. RORR7       \        . R	O. R
O. RO.. ROR7      p\        P                  ! W4       R# )    AT)allow_duplicatesr1   N)ghi)def)r   r   r   )r   rC   r@   )r   rD   rA   )r   rE   rB   )r>   r>   r>   )r   r   r   r6   )r(   r)   exps   &  r+   test_insert_with_columns_dups1TestDataFrameInsert.test_insert_with_columns_dupsA   sk    [
		!S/D	A
		!S/D	A
		!S/D	Ao?
 	b&r;   c                *   \        \        P                  P                  ^4      P	                  ^ ^dRR7      RR7      p\
        P                  ! R4      ;_uu_ 4        \        P                  ! . RO4      VR&   RRR4       R#   + '       g   i     R# ; i)r
   )sizeInt64)dtypeNr   )r   d   )r4   r
   r   )r   r   r   r   integersr   assert_produces_warningarrayr(   r)   s   & r+   test_insert_EA_no_warning-TestDataFrameInsert.test_insert_EA_no_warningL   sh     II!!!$--a8-DG
 ''--hhy)BsG .---s   BB	c                    \        R ^^.R^^./4      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  ^RV4       RRR4       R#   + '       g   i     R# ; i)col1col2zJExpected a one-dimensional object, got a DataFrame with 2 columns instead.r   newcolN)r   r#   r$   r%   r   r'   s   &  r+   test_insert_frame%TestDataFrameInsert.test_insert_frameU   sZ    AA78 Y 	 ]]:S11IIa2& 2111s   AA)	c           
         \        R ^^./4      pVP                  \        P                  ! ^ 4      R^ 4       \        P
                  ! V\        R^ ^ .R ^^./4      4       R# )r   r   N)r   r   r   int64r   r6   rQ   s   & r+   test_insert_int64_loc)TestDataFrameInsert.test_insert_int64_loc_   sR    aV}%
		"((1+sA&
b)S1a&#1v,F"GHr;   c           	     ^   \        R \        R4      3^ ./4      pVP                  ^R^.4       \        ^ ^..\        P                  ! R \        R4      3R\
        3.4      R7      p\        P                  ! W4       VR \        R \        R4      3^ ./4      p\        P                  ! W4       R# )r>   z
2024-01-01Br1   N)r   r   r   r   from_tuplesr   r   r6   )r(   r)   r8   s   &  r+   +test_insert_delete_mixed_multiindex_columns?TestDataFrameInsert.test_insert_delete_mixed_multiindex_columnse   s     i56<=
		!S1#VH**y./#s<
 	b+ sGsIl$;<qcBC
b+r;    N)__name__
__module____qualname____firstlineno__r,   r9   rG   rR   rX   r\   ra   __static_attributes____classdictcell__)__classdict__s   @r+   r   r      s.     .60"	'*'I, ,r;   r   )__doc__numpyr   r#   pandasr   r   r   r   r   pandas._testing_testingr   r   rc   r;   r+   <module>rp      s-       c, c,r;   