+
    xȇi                        R t ^ RIt^ RIt^ RIt^ RIHtHtHtH	t	H
t
Ht ^ RIHt  ! R R4      tR tR tR t]P&                  P)                  RR	7      R
 4       tR t]P&                  P)                  RR	7      R 4       tR tR# )z
Tests for values coercion in setitem-like operations on DataFrame.

For the most part, these should be multi-column DataFrames, otherwise
we would share the tests with Series.
N)	DataFrame
MultiIndexNaTSeries	Timestamp
date_rangec                   h   a  ] tR t^t o ]P
                  P                  RRR.4      R 4       tRtV t	R# )TestDataFrameSetitemCoercionconsolidateTFc                   \        \        P                  ! R\        P                  R7      4      p\        P
                  ! W".^^^.R7      pV'       d   VP                  4       p\        P                  ! R\        P                  R7      VP                  R^\        ^^4      33&   VP                  \        P                  8H  P                  4       '       g   Q h\        P                  ! R	\        P                  R7      VP                  R^\        ^^4      33&   VP                  \        P                  8H  P                  4       '       g   Q h\        P                  ! R	\        P                  R7      VP                  R^\        ^^4      33&   VP                  \        P                  8H  P                  4       '       g   Q hR# )
   dtype)axiskeys:      N:       NNNNN)r   r   )r   r   )r   r   )r   npzerosfloat32pdconcat_consolidateoneslocslicedtypesall)selfr
   As   && y/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/indexing/test_coercion.py#test_loc_setitem_multiindex_columns@TestDataFrameSetitemCoercion.test_loc_setitem_multiindex_columns   s1    bhhvRZZ89IIqf1Aq62 A')wwvRZZ'HcAuQ{##$BJJ&++----')wwvRZZ'HcAuQ{##$BJJ&++----%'WWV2::%Fa!U1a[!!"BJJ&++----     N)
__name__
__module____qualname____firstlineno__pytestmarkparametrizer$   __static_attributes____classdictcell__)__classdict__s   @r#   r	   r	      s,     [[]T5M:. ;.r&   r	   c                     \        R . ROR. RO/4      p V P                  4       p\        P                  ! \        RR7      ;_uu_ 4        RVP
                  R&   RRR4       \        P                  ! \        RR7      ;_uu_ 4        RVP                  R&   RRR4       \        P                  ! \        RR7      ;_uu_ 4        RVP                  R	&   RRR4       \        P                  ! \        RR7      ;_uu_ 4        RVP                  R	&   RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lt; i  + '       g   i     R# ; i)
r"   BInvalid valuematchg333333?N)   r   r   )r      r   )r7   r3   )r7   r7   )	r   copyr,   raises	TypeErroratr   iatiloc)origdfs     r#   
test_37477rA   1   s    c9c956D	B	y	8	8f 
9 
y	8	8v 
9 
y	8	8t 
9 
y	8	8 
9	8 
9	8 
9	8 
9	8 
9	8	8s0   DD) D<<ED&	)D9	<E	E 	c                    \        R 4      p\        R4      p\        R4      p\        V^R7      p\        VRR.R7      pVP                  4       pW ! V4      VR3&   RVR&   W6P                  VR3&   VP
                  R	,          V8X  g   Q hR# )
z
2014-04-01z2014-04-23 12:42:38.883082z2014-04-24 01:33:30.040039)periodstimenowLiveindexcolumnsTN)r   r   )r   r   r   r9   r<   r>   )
indexer_alstartt1t2dtir?   r@   s   &      r#   	test_6942rN   C   s    l#E	/	0B	/	0B
UA
&C3F(;<D	B')JrN5)#$BvJ EE%
774=Br&   c                    \        . R	OR7      p^ VR&   ^V ! V4      R
&   \        R. RO/. R	O\        P                  R7      p\        P                  ! W4       \
        P                  ! \        RR7      ;_uu_ 4        RV ! V4      R
&   RRR4       \
        P                  ! \        RR7      ;_uu_ 4        RV ! V4      R
&   RRR4       R#   + '       g   i     LJ; i  + '       g   i     R# ; i)r"   rG   D)rG   r   r4   r5   g     @F@Nhello)r"   r3   C)rS   rQ   )r   r   r   )r   r   int64tmassert_frame_equalr,   r:   r;   )rI   r@   expecteds   &  r#   
test_26395rX   U   s    		)BBsG JrN8#y)QH"'	y	8	8#'
2x  
9 
y	8	8#*
2x  
9	8 
9	8 
9	8	8s   ;C	3C	C	C-	zunwanted upcast)reasonc                     \        ^^.^^..RR.R7      p \        R^R^/4      V P                  ^&   V P                  \        P
                  8H  P                  4       '       g   Q h\        R^/4      V P                  ^&   \        \        P
                  \        P                  .\        RR.R7      p\        P                  ! V P                  V4       R# )r7   ab)rH   )r   rG   N)r   r   r   r   r   rT   r    float64objectrU   assert_series_equal)r@   
exp_dtypess     r#   
test_15231ra   e   s    	QFQF#c3Z	8BQQ'(BFF1III!&&((((Qx BFF1I 2::.fS#JOJ299j1r&   c            
      r   \        ^ \        P                  ! ^^.\        P                  R7      ^\        P                  ! ^^.\        P                  R7      ^RR./4      p V P	                  4       pV ^ ,          P
                  P                  ^^4      pW P                  R&   \        P                  ! W4       R# )r   r   r[   r\   N)r   :r   r7   N)
r   r   arrayr   r9   valuesreshaper>   rU   rV   )r@   r?   rd   s      r#   .test_iloc_setitem_unnecesssary_float_upcastingrf   r   s    	rxxAbjj1rxxAbjj1Sz	

B 779DU\\!!!Q'FGGFO"#r&   zunwanted casting to dt64c            
         \        R RR7      p R^ RV /.p\        V4      pVP                  4       p\        P                  \
        .VP                  ^&   \        R^ \        P                  .R\        V \
        .RR7      /4      p\        P                  ! W44       R^ RV /.pVP                  4       p\        P                  \
        .VP                  R&   \        P                  ! W44       R# )	z2016-03-01 03:13:22.98986UTC)tzonetwozdatetime64[ns, UTC]r   N)r7   r   )
r   r   r9   r   nanr   r   r   rU   rV   )tsdatar?   r@   rW   s        r#   
test_12499ro      s     
.5	9BAub!"DT?D	BBFF1I	BFFUFB9<Q$RSH "'Aub!"D	BFFC=BFF4L"'r&   c                  r   \         P                  ! R R.. RO.4      p \        R\        ^4      V R7      p\        . RO.^,          \        ^4      . ROR7      pW!R &   \        ^ . RO^. R	O^. R
O^. RO^. RO^. RO/4      pWn        \        \        P                  ! \        P                  4      .^,          \        P                  ! \        P                  4      .,           \        P                  ! \        P                  4      .^,          ,           V R7      p\        P                  ! VP                  V4       R# )r"   r3   rF   rP   N)r[   r\   c)r7   r         @)r7   r7   r7   )r   r   r   )rs   rs   rs   )rr   rr   rr   )r   from_productr   rangerH   r   r   r   rT   r]   rU   r_   r   )mir@   fillerrW   r`   s        r#   
test_20476rx      s    		 	 3*o!>	?B	2U1Xr	2B}q(a/RFsGyy|||	
	H 	"((	q BHHRZZ$8#99RXXbhh=O<PST<TTJ 299j1r&   )__doc__numpyr   r,   pandasr   r   r   r   r   r   r   pandas._testing_testingrU   r	   rA   rN   rX   r-   xfailra   rf   ro   rx   r'   r&   r#   <module>r      s        . .4$$+  +,	2 -	2$" 45( 6(.2r&   