+
    xȇi$             
       l   ^ RI Ht ^ RIHtHt ^ RIHt ^ RIt^ RIt^ RIt^ RI	t
^ RIt^ RIHt ^ RIt^ RIHtHtHtHt ^ RIHt ^ RIHt ^ RIHtHt ^ R	IHt ]P>                  R
 4       t ]P>                  ! R^ ^d.RR.R7      R 4       t! ! R R4      t" ! R R4      t# ! R R4      t$ ! R R4      t% ! R R4      t&R t'R t(R t) ! R R4      t*R t+R  t,R! t-]P\                  P_                  R"]! R#R$.R%R&..]0! R'4      R(7      R)3]! R#R*.R%R*..]0! R'4      R(7      Pc                  R*]2/4      R+3.4      R, 4       t3R- t4]P\                  P_                  R.]! ^^.4      .]! ^^.4      ]! ^^.4      ..4      R/ 4       t5R0 t6R1 t7R2 t8R3 t9R4 t:R5 t;]P\                  Py                  R64      R7 4       t=R8 t>R9 t?R# ):    )deque)datetimetimezone)EnumN)import_optional_dependency)	DataFrameIndex
MultiIndexSeries)expressions)_check_mixed_float_check_mixed_int)Versionc                 d    \         P                  ! . RO. RO. RO.4      p \        V . RO. ROR7      # )z
Fixture for simple 3x3 DataFrame

Columns are ['one', 'two', 'three'], index is ['a', 'b', 'c'].

   one  two  three
a  1.0  2.0    3.0
b  4.0  5.0    6.0
c  7.0  8.0    9.0
columnsindex      ?       @      @)      @      @g      @)g      @g       @g      "@onetwothreeabc)nparrayr   )arrs    r/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/test_arithmetic.pysimple_framer&       s)     ((O_oF
GCS"9QQ    Tnumexprpython)autouseparamsidsc              #      "   VP                  4       ;_uu_ 4       pVP                  \        R V P                  4       V P                  x  RRR4       R#   + '       g   i     R# ; i5i)_MIN_ELEMENTSN)contextsetattrexprparam)requestmonkeypatchms   && r%   switch_numexpr_min_elementsr6   1   sB     					!			$7mm 
			s   A)0A
A)A&	 	A)c                   z   a  ] tR t^8t o V 3R lR ltRR ltV 3R lR ltV 3R lR ltRR	 ltR
 t	RR lt
RtV tR# )DummyElementc                   < V ^8  d   QhRR/#    returnN )format__classdict__s   "r%   __annotate__DummyElement.__annotate__9   s     % % %r'   c                H    Wn         \        P                  ! V4      V n        R # N)valuer"   dtype)selfrD   rE   s   &&&r%   __init__DummyElement.__init__9   s    
XXe_
r'   Nc                Z    \         P                  ! V P                  V P                  R 7      # )rE   )r"   r#   rD   rE   rF   rE   copys   &&&r%   	__array__DummyElement.__array__=   s    xx

$**55r'   c                    < V ^8  d   QhRS[ /# r;   r<   str)r>   r?   s   "r%   r@   rA   @   s     ; ; ;r'   c                <    R V P                    RV P                   R2# )zDummyElement(z, ))rD   rE   rF   s   &r%   __str__DummyElement.__str__@   s    tzzl"TZZL::r'   c                    < V ^8  d   QhRS[ /# rP   rQ   )r>   r?   s   "r%   r@   rA   C   s      # r'   c                    \        V 4      # rC   rQ   rU   s   &r%   __repr__DummyElement.__repr__C   s    4yr'   c                    Wn         V # rC   rJ   rK   s   &&&r%   astypeDummyElement.astypeF   s    
r'   c                X    \        V 4      ! V P                  P                  V4      V4      # rC   )typerD   view)rF   rE   s   &&r%   ra   DummyElement.viewJ   s     Dz$**//%0%88r'   c                ,    \        V P                  4      # rC   )boolrD   )rF   axiss   &&r%   anyDummyElement.anyM   s    DJJr'   )rE   rD   )NN)FrC   )__name__
__module____qualname____firstlineno__rG   rM   rV   rZ   r]   ra   rf   __static_attributes____classdictcell__r?   s   @r%   r8   r8   8   s<     % %6; ; 9   r'   r8   c                   &  a  ] tR t^Ut o R tR t]P                  P                  RR]	P                  P                  ^4      P                  ^
^
R7      R]P                  ! R^
RR	7      /R]	P                  P                  ^4      P                  ^
^
R7      R]	P                  P                  ^4      P                  ^
^
R7      /.R]	P                  P                  ^4      P                  ^
^
R7      R]	P                  P                  ^4      P                  ^
^
R7      /R]	P                  P                  ^4      P                  ^
^
R7      R]P                  ! R^
RR	7      /.R]P                  ! R^
RR	7      R]P                  ! R^
RR	7      /R]	P                  P                  ^4      P                  ^
^
R7      R]	P                  P                  ^4      P                  ^
^
R7      /.R]	P                  P                  ^4      P                  ^
^
R7      R]P                  ! R^
RR	7      /R]P                  ! R^
RR	7      R]P                  ! R^
RR	7      /..4      R
 4       t]P                  P                  R. RO4      R 4       tR tR tR tR tRtV tR# )TestFrameComparisonsc                    \        R . RO/4      p\        R . RO/4      pVR8H  p\        P                  ! W24       VR ,          P                  R4      VR &   VR8H  p\        P                  ! W24       R# )AfoocategoryN)rs   barbaz)TFF)r   tmassert_frame_equalr]   )rF   dfexpress   &   r%   &test_comparison_with_categorical_dtype;TestFrameComparisons.test_comparison_with_categorical_dtypeX   sj     234234Ek
c' S'..,3Ek
c'r'   c                   \        \        P                  P                  ^4      P	                  R4      \        R4      R7      pRp\        P                  ! \        VR7      ;_uu_ 4        VR9    RRR4       R#   + '       g   i     R# ; i)r;   ABCDr   z+The truth value of a DataFrame is ambiguousmatchN)      rC   )	r   r"   randomdefault_rngstandard_normallistpytestraises
ValueError)rF   ry   msgs   &  r%   test_frame_in_list'TestFrameComparisons.test_frame_in_listg   s]    II!!!$44V<d6l
 <]]:S11&L 2111s   )A99B
	z	arg, arg2r   sizer    20010101ns)periodsunitc           	     &   \        V4      p\        V4      pW48H  p\        VP                   Uu/ uF  qfW6,          WF,          8H  bK  	  upVP                  VP                  R 7      p\        P                  ! WW4       W48g  p\        VP                   Uu/ uF  qfW6,          WF,          8g  bK  	  upVP                  VP                  R 7      p\        P                  ! WW4       . ROpRP                  V4      p	\        P                  ! \        V	R7      ;_uu_ 4        W48   RRR4       \        P                  ! \        V	R7      ;_uu_ 4        W48   RRR4       \        P                  ! \        V	R7      ;_uu_ 4        W48   RRR4       \        P                  ! \        V	R7      ;_uu_ 4        W48*   RRR4       R# u upi u upi   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Ls; i  + '       g   i     R# ; i)r   r   |r   N)z=Invalid comparison between dtype=datetime64\[ns\] and ndarrayzinvalid type promotionzbThe DTypes <class 'numpy.dtype\[.*\]'> and <class 'numpy.dtype\[.*\]'> do not have a common DType.)	r   r   r   rw   rx   joinr   r   	TypeError)
rF   argarg2xyresultcolexpectedmsgsr   s
   &&&       r%   test_comparison_invalid,TestFrameComparisons.test_comparison_invalidp   sk   ` cNdO ./ii8is!&AF""i8''II

 	f/./ii8is!&AF""i8''II

 	f/
 hhtn]]9C00F 1]]9C00E 1]]9C00E 1]]9C00F 10= 9 9  100000000s;   F<GGG<G,-G?G	G)	,G<	?H	zleft, rightc                   \        R \        P                  ! R^
R7      R\        P                  ! R^
R7      R\        P                  P                  ^4      P                  R^
R7      R\        P                  P                  ^4      P                  ^
4      R	\        ^
4       Uu. uF  p\        ^dV,           4      NK  	  up/4      p\        P                  VP                  \        P                  P                  ^4      P	                  \        V4      4      R
8  R3&   \        \        V4      p\        \        V4      pVR9   dR   V! V\        P                  ! R4      4      pV! \        P                  ! R4      V4      p\         P"                  ! W4       MRp	\$        P&                  ! \(        V	R7      ;_uu_ 4        V! V\        P                  ! R4      4       RRR4       \$        P&                  ! \(        V	R7      ;_uu_ 4        V! \        P                  ! R4      V4       RRR4       VR9   dS   V! V\        P                  ! R4      4      pV! \        P                  ! R4      V4      p\         P"                  ! W4       R# Rp	\$        P&                  ! \(        V	R7      ;_uu_ 4        V! V\        P                  ! R4      4       RRR4       \$        P&                  ! \(        V	R7      ;_uu_ 4        V! \        P                  ! R4      V4       RRR4       R# u upi   + '       g   i     ELQ; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)dates1r   r   dates220010102intcoli ʚ;r   floatcol	stringcolg      ?20010109zL'(<|>)=?' not supported between instances of 'numpy.ndarray' and 'Timestamp'r   NnatzJ'(<|>)=?' not supported between instances of 'numpy.ndarray' and 'NaTType')eqne)r   pd
date_ranger"   r   r   integersr   rangechrNaTloclengetattroperator	Timestamprw   rx   r   r   r   )
rF   leftrightiry   left_fright_fr   r   r   s
   &&&       r%   test_timestamp_compare+TestFrameComparisons.test_timestamp_compare   s^    "--
B?"--
B?"))//2;;JR;PBII11!4DDRHE"I>Iqc#'lI>
 LN66ryy$$Q'..s2w7#=xGH4((E* <b",,z":;HR\\*5r:F!!&3?  y44r2<<
34 5y44Z0"5 5 <b",,u"56HR\\%0"5F!!&3=  y44r2<<./ 5y44U+R0 54C ?" 544444 54444s6   "L:L L4)M3M L1	4M	M	M,	c                    \        R ^.R ^..4      p\        RR.RR..4      pW8H  pVP                  4       P                  4       '       d   Q hW8g  pVP                  4       P                  4       '       g   Q hR# )z
1989-08-01r   r    r!   dN)r   rf   all)rF   ry   otherr   s   &   r%   test_mixed_comparison*TestFrameComparisons.test_mixed_comparison   sx     q)L!+<=>C:Sz23::<##%%%%zz|!!!!r'   c                    \        \        P                  ! ^4      P                  R4      4      p\        RR.RR.RR..4      pVR8H  p\        P
                  ! W24       V^^.8H  p\        P
                  ! W24       R# )r   FTN   r;   r;   r;   )r   r"   arangereshaperw   rx   )rF   ry   r   r   s   &   r%    test_df_boolean_comparison_error5TestFrameComparisons.test_df_boolean_comparison_error  sp     ryy|++F34uentUmeU^LMv
f/1v
f/r'   c                    \        \        P                  P                  ^4      P	                  R4      \        ^4      . ROR7      pVP                  R4      pVP                  4       P                  4       '       d   Q hR# )r;   r   N)   r   rr   BC)r   r"   r   r   r   r   __eq__rf   rF   ry   r   s   &  r%   test_df_float_none_comparison2TestFrameComparisons.test_df_float_none_comparison  s`    II!!!$44V<(#
 4::<##%%%%%r'   c                   \        R ^RR/R ^RR/.4      pVP                  ^8  p\        P                  ! W,          VP                  R,          4       \        P                  ! W) ,          VP                  R,          4       VP
                  R8H  p\        P                  ! W,          VP                  R,          4       \        P                  ! W) ,          VP                  R,          4       R# )r   r    rs   ru   N):   r   NNNN):r   r   Nr   )r   r   rw   rx   r   r    )rF   ry   mask_amask_bs   &   r%   test_df_string_comparison.TestFrameComparisons.test_df_string_comparison$  s    ae,sAsE.BCD
bj"&&.9
bk266&>:
bj"&&.9
bk266&>:r'   r=   N))gtlt)r   r   )gele)r   r   )r   r   )r   r   )rh   ri   rj   rk   r|   r   r   markparametrizer"   r   r   r   r   r   r   r   r   r   r   r   rl   rm   rn   s   @r%   rp   rp   U   s    ( [[ ..q1::2B:Gz2DI
 ..q1::2B:G..q1::2B:G	 ..q1::2B:G..q1::2B:G
 ..q1::2B:Gz2DI	 z2DIz2DI
 ..q1::2B:G..q1::2B:G	 ..q1::2B:Gz2DI
 z2DIz2DI	?)	
,Z([,Z(T [[	

+1
+1Z"0&; ;r'   rp   c                      a  ] tR tRt o R t]P                  P                  R]P                  ]
.4      R 4       tR tR tR tR tR	 tR
 tR tRtV tR# )TestFrameFlexComparisonsi/  c                   \         P                  P                  ^4      P                  R4      p\         P                  P                  ^4      P                  R4      p\	        V4      p\	        V4      p\         P
                  ! . VP                  O^N^N54      pVP                  V4      P                  P                  4       '       g   Q hVP                  V4      P                  P                  4       '       d   Q h\        WAP                  4      pTp\        P                  ! V! V4      V! WE4      4       VP                   R,          P#                  4       p	V! V	4      p
V! WIP%                  VP&                  VP(                  R7      4      p\        P                  ! W4       \        P                  ! V! VP                  4      V! WEP                  4      4       \        P                  ! V! ^ 4      V! V^ 4      4       Rp\        P                  ! V! \         P*                  4      V! V\         P*                  4      4       \,        P.                  ! \0        VR7      ;_uu_ 4        V! V4       RRR4       R#   + '       g   i     R# ; i)r;   r   $Unable to coerce to Series/DataFramer   N   r   ):r   NNr   NN)r"   r   r   r   r   onesshaper   valuesr   r   rf   r   rh   rw   rx   r   rL   reindexr   r   nanr   r   r   )rF   comparison_opdata
other_datary   r   ndim_5fopart_orsxpr   s   &&           r%   test_bool_flex_frame-TestFrameFlexComparisons.test_bool_flex_frame1  s   yy$$Q'77?YY**1-==fE
t_*%*288*Q**+ uuRy##%%%%559##''))))B../
ah"56"'')vYr>>"**>EF
b%
aoq\\/BC
adAb!H-4
ai2rvv7]]:S11fI 2111s   #	I66J	boxc                *   \         P                  P                  ^4      P                  R4      p\	        V4      pV! \         P                  P                  ^4      P                  ^4      4      pV! \         P                  P                  ^4      P                  ^4      4      pVP                  V^ R7      pVP                  V4      pVP                  V^ R7      pVP                  V4      p	\        P                  ! Ws\        V4      8H  4       \        P                  ! Wy) 4       \        P                  ! Wh) 4       \        P                  ! WcP                  P                  V4      P                  4       \        P                  ! WsP                  \        V4      4      4       \        P                  ! WcP                  \        V4      ^ R7      4       \        P                  ! WcP                  \        V4      ^ R7      4       VP                  V^ R7      p
VP                  V4      pVP                  V^ R7      pVP                  V4      p\        P                  ! W\        V4      8  4       \        P                  ! W) 4       \        P                  ! W) 4       \        P                  ! WP                  P                  V4      P                  4       VP                  V^ R7      pVP                  V4      pVP                  V^ R7      pVP                  V4      p\        P                  ! W\        V4      8  4       \        P                  ! VV) 4       \        P                  ! VV) 4       \        P                  ! WP                  P                  V4      P                  4       \        \         P                  P                  ^4      P                  ^4      4      p\        \         P                  P                  ^4      P                  ^4      4      pR# )r;   re   Nr   )r"   r   r   r   r   r   r   rw   rx   r   Tr   r   r   r   r   )rF   r   r   ry   idx_sercol_seridx_eqcol_eqidx_necol_neidx_gtcol_gtidx_lecol_leidx_gecol_geidx_ltcol_lts   &&                r%   test_bool_flex_series.TestFrameFlexComparisons.test_bool_flex_seriesN  s    yy$$Q'77?t_bii++A.>>qABbii++A.>>qABwQ'wwQ'w
fF7O&;<
fg.
fg.
fddggg&6&8&89
feeDM&:;
feeF7O!e&DE
feeDMe&BCwQ'wwQ'w
f6'?&:;
fg.
fg.
fddggg&6&8&89wQ'wwQ'w
fF7O&;<
fvg.
fvg.
fddggg&6&8&89..q1AA!DE..q1AA!DEr'   c                   \        \        P                  P                  ^4      P	                  R4      4      p\        P
                  VP                  R&   VP                  V4      pVP                  R,          '       d   Q hVP                  V4      pVP                  R,          '       g   Q hVP                  V4      pVP                  R,          '       d   Q hVP                  V4      pVP                  R,          '       d   Q hVP                  V4      pVP                  R,          '       d   Q hVP                  V4      pVP                  R,          '       d   Q hR# )r;   Nr   r   r   )r   r"   r   r   r   r   r   r   r   r   r   r   r   )rF   ry   r   s   &  r%   test_bool_flex_frame_na0TestFrameFlexComparisons.test_bool_flex_frame_nay  s    ryy,,Q/??GHvvtUU2Y66$<<UU2Yvvd|||UU2Y66$<<UU2Y66$<<UU2Y66$<<UU2Y66$<<<r'   c                   \         P                  ! \         P                  ^^\         P                  .4      p\         P                  ! R\         P                  ^R.4      p\        RV/4      p\        RV/4      pRP	                  RR.4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        VR,          P                  VR,          4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        VP                  VP                  8   RRR4       VP                  V4      pVP                  P                  4       '       g   Q h\         P                  ! R\         P                  R.4      p\        RV/4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  R4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        VR,          P                  R4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        VP                  R8   RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELa; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)r   y               @Nr   r   z9'>' not supported between instances of '.*' and 'complex'z unorderable types: .*complex\(\)r   )r"   r#   r   r   r   r   r   r   r   r   r   r   )	rF   r$   arr2ry   df2r   r   arr3df3s	   &        r%   "test_bool_flex_frame_complex_dtype;TestFrameFlexComparisons.test_bool_flex_frame_complex_dtype  s   hh1bff-.xxRVVQ-.Sz"d$hhK3
 ]]9C00EE#J 1 ]]9C00sGJJs3x  1 ]]9C00II

" 1 UU3Zyy}}xxRVVT*+d$]]9C00FF2J 1 ]]9C00HKKO 1 ]]9C00JJO 10- 100 100 100 10 10 100sH   0J. J:J,'K %K*K&J	J)	,J=	 K	K#	&K7	c                   \        R R\        P                  R./\        R7      p\        R R\        P
                  ! 4       R./\        R7      pVP                  V4      p\        R . RO/4      p\        P                  ! W44       R# )r   rs   ru   rJ   N)FTF)	r   r"   r   objectr   nowr   rw   rx   )rF   df1r  r   rz   s   &    r%   !test_bool_flex_frame_object_dtype:TestFrameFlexComparisons.test_bool_flex_frame_object_dtype  sg     67vF >?vN 456
f*r'   c                :   \        \        P                  .4      pV\        P                  8H  pVP                  R,          P	                  4       RJ g   Q hVP                  \        P                  4      pVP                  R,          P	                  4       RJ g   Q hV\        P                  8g  pVP                  R,          P	                  4       RJ g   Q hVP                  \        P                  4      pVP                  R,          P	                  4       RJ g   Q hR# )r   FTNr  )r   r   r   ilocitemr   r   r   s   &  r%   test_flex_comparison_nat1TestFrameFlexComparisons.test_flex_comparison_nat  s     x rvv{{4 %%'5000rvv{{4 %%'5000rvv{{4 %%'4///rvv{{4 %%'4///r'   c           	        \        R . ROR. RO/4      p^p\        W!P                  4      ! V4      P                  P	                  4       p\
        P                  ! V\        ^.\        P                  ! \        4      .RR7      4       R# )r   r   countr   nameNr   r;   r   r   )r   r   rh   dtypesvalue_countsrw   assert_series_equalr   r"   rE   rd   )rF   r   ry   constr   s   &&   r%   &test_df_flex_cmp_constant_return_types?TestFrameFlexComparisons.test_df_flex_cmp_constant_return_types  sg    Y_=>334U;BBOOQ
FA3rxx~&6WE	
r'   c           	     6   \        R . ROR. RO/4      p^pVP                  R,          p\        WAP                  4      ! V4      P                  P                  4       p\        P                  ! V\        ^.\        P                  ! \        4      .RR7      4       R# )r   r   Nr   Nr(  r)  Nr+  r   )r   r#  r   rh   r,  r-  rw   r.  r   r"   rE   rd   )rF   r   ry   r/  emptyr   s   &&    r%   ,test_df_flex_cmp_constant_return_types_emptyETestFrameFlexComparisons.test_df_flex_cmp_constant_return_types_empty  st    Y_=> 6 67>EERRT
FA3rxx~&6WE	
r'   c                l   \         P                  P                  . RO4      p\        RVRV/4      p\	        ^ ^ .4      pVP                  V^ R7      p\        RRR.RRR./4      p\        P                  ! WE4       \	        ^^.RR.R7      pVP                  V^R7      p\        P                  ! Wu4       R# )r   rr   r   r   Fr   Nr+  )r   IntervalIndexfrom_breaksr   r   r   rw   rx   )rF   iiry   serr{   r   ser2res2s   &       r%   -test_df_flex_cmp_ea_dtype_with_ndarray_seriesFTestFrameFlexComparisons.test_df_flex_cmp_ea_dtype_with_ndarray_series  s    )))4Rb)*aVneeCae cE5>3GH
c,q!fS#J/uuTu"
d-r'   r=   N)rh   ri   rj   rk   r   r   r   r   r"   r#   r   r  r  r  r   r%  r0  r5  r?  rl   rm   rn   s   @r%   r   r   /  sd     : [[URXXv$67(F 8(FT "%N+0$
	
. .r'   r   c                     a  ] tR tRt o R tR tR tR t]P                  P                  R. RO4      R 4       t]P                  P                  R]! ^^4      4      R	 4       tR
 t]P                  P                  R. RO4      R 4       tR tR tR tR tR t]P                  P                  R. RO4      R 4       t]P                  P                  R^ R.4      R 4       tR tR tR tR tR tRtV tR# )TestFrameFlexArithmetici  c                   \         P                  ! ^4      p\        V4      p\        RVRV/4      pVP	                  V^ R7      p\        VP
                   Uu/ uF  qUW5,          V,          bK  	  up4      p\        P                  ! WF4       VP	                  VP                  ^ R7      p\        P                  ! Wv4       R# u upi )r   rr   r   r   N)	r"   r   r   r   floordivr   rw   rx   r   )rF   r$   r<  ry   r   r   r   result2s   &       r%   test_floordiv_axis0+TestFrameFlexArithmetic.test_floordiv_axis0  s    iilSkS#s+,Sq)RZZHZc27c>1ZHI
f/++cjjq+1
g0 Is   Cc                "   \         P                  ! R ^
R7      p\         P                  ! R^
R7      p\        V4      p\	        ^ V^V/4      pVP                  V^ R7      p\	        ^ W,           ^W",           /4      p\        P                  ! WV4       R# )
2016-01-01r   1r   N)r   r   timedelta_ranger   r   addrw   rx   )rF   dtitditserry   r   r   s   &      r%   test_df_add_td64_columnwise3TestFrameFlexArithmetic.test_df_add_td64_columnwise  sw    mmL"5  b1c{33'(1%aAsy9:
f/r'   c                p   \         P                  ! R ^R7      p\        . R
ORR7      p\        RVRV/4      p\        RVRV/4      p\         P                  ! ^R7      P                  4       pVP                  WER7      p\        R\        . RORR7      RV^,          /4      p\        P                  ! Wg4       R	# )rI  r   timedelta64[ns]rJ   rr   r   )days
fill_valuezdatetime64[ns]N)z1 Dayr   z2 Days)z
2016-01-02z
2016-01-03z
2016-01-05)	r   r   r   r   	Timedeltato_timedelta64rL  rw   rx   )rF   rM  r<  ry   r   fillr   r   s   &       r%   $test_df_add_flex_filled_mixed_dtypes<TestFrameFlexArithmetic.test_df_add_flex_filled_mixed_dtypes  s    mmL!4/7HIS#s+,3S#./||#224/V>FV S1W	
 	f/r'   c                2  a VoV3R  lp\        VS4      ! ^V,          4      pV! V^V,          4      p\        P                  ! WV4       \        VS4      ! ^V,          4      pV! V^V,          4      p\        P                  ! WV4       \        VRR/R7       R# )c                    < SP                  R 4      '       d'   \        \        SP                  R R4      4      ! W4      # \        \        S4      ! W4      # )__r__)
startswithr   r   replace)r   r   ops   &&r%   r   8TestFrameFlexArithmetic.test_arith_flex_frame.<locals>.f'  sA    }}U##xE4)@A!GG8R(..r'   r   NrJ   )r   rw   rx   r   )rF   all_arithmetic_operatorsfloat_framemixed_float_framer   r   r   rb  s   &&&&   @r%   test_arith_flex_frame-TestFrameFlexArithmetic.test_arith_flex_frame!  s     &	/ b)!k/:[!k/2
f/ *B/4E0EF&,=(=>
f/6#t5r'   rb  c                z   \        \        V4      p\        W14      ! ^V,           4      pV! V^V,           4      pRp	VR9   d   RRRR/p	MVR9   d   RR/p	\        P                  '       d%   V^ 8X  d   ^V,           R,          P                  V	R&   \
        P                  ! Wx4       \        WyR7       \        WA4      ! ^V,          4      pV! V^V,          4      p\
        P                  ! Wx4       \        VRR/R7       \        W!4      ! ^V,          4      pV! V^V,          4      p\
        P                  ! Wx4       R# )	r;   Nr   uint64r   rr   rJ   )__sub__)__add____mul__)	r   r   r1   USE_NUMEXPRrE   rw   rx   r   r   )
rF   rb  	int_framemixed_int_framerf  r6   r   r   r   rE   s
   &&&&&&    r%   test_arith_flex_frame_mixed3TestFrameFlexArithmetic.test_arith_flex_frame_mixed7  s%    Hb! -a/.AB_a/&9: (C.E))$KE ;q @
 o-s399E#J
f/- */4E0EF&,=(=>
f/6#t5 'I6YI.
f/r'   dimc                    Tp\         P                  ! RV,          4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        W$4      ! V4       RRR4       R#   + '       g   i     R# ; i)r   r   r   N)r   )r"   r   r   r   r   r   )rF   rd  re  rs  rb  r$   r   s   &&&&   r%   test_arith_flex_frame_raise3TestFrameFlexArithmetic.test_arith_flex_frame_raise`  sO     & ggdSj!4]]:S11K$S) 2111s   A""A3	c                B   VP                  ^4      p\        P                  ! W!^,           4       VP                  VR,          4      pVP                  4       \        P
                  ,          p\        P                  ! W44       VR,          P                  V4      pVP                  4       \        P
                  ,          p\        P                  ! W44       \        P                  ! \        RR7      ;_uu_ 4        VP                  VP                  ^ ,          ^R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP                  VP                  ^ ,          R^R7       RRR4       R#   + '       g   i     Ld; i  + '       g   i     R# ; i)r   r3  rV  r   rU  Nr   re   rV  )
rL  rw   rx   
sort_indexr"   r   r   r   NotImplementedErrorr#  )rF   re  	const_addr   r   s   &&   r%   test_arith_flex_frame_corner4TestFrameFlexArithmetic.test_arith_flex_frame_cornerk  s   OOA&	
iq9 R1))+bff4
f/R$$[1))+bff4
f/]].lCCOOK,,Q/AO> D ]].lCCOOK,,Q/g!OL DC DC DCCs   9%E:
&F:F
	F	c                .   TpVP                  R 4      pVR,          p\        W24      p\        \        V4      p\        P                  ! V! V4      V! W44      4       \        P                  ! V! V^ R7      V! VP
                  V4      P
                  4       R# )r   r   r   N)xsr   r   rw   rx   r   )rF   r&   rb  ry   rowr   r   s   &&&    r%   test_arith_flex_series_ops2TestFrameFlexArithmetic.test_arith_flex_series_ops~  sp     eeCjiBOXr"
afbk2
a!nbsmoo>r'   c                x   TpVP                  R 4      pVR,          p\        P                  ! VP                  VRR7      W#,           4       \        P                  ! VP	                  V4      W#,          4       \        P                  ! VP	                  V^ R7      VP
                  V,          P
                  4       R# )r   r   Nr   )r  rw   rx   rL  divr   )rF   r&   ry   r  r   s   &&   r%   test_arith_flex_series.TestFrameFlexArithmetic.test_arith_flex_series  s    eeCji
bffStf4bh? 	bffSk284
bffSqf1BDD3J>>Br'   c                V   \        \        P                  ! ^4      P                  R	4      VR7      p\        \        P                  \        P
                  .RR.RR..4      pVR8X  d   VP                  V4      pVP                  V^ ,          RR7      p\        P                  ! WC4       R# )
r   rJ   r         ?g      ?float32r   r   Nr   )
r   r"   r   r   r   infr]   r  rw   rx   )rF   any_real_numpy_dtypery   r   r   s   &&   r%   #test_arith_flex_series_broadcasting;TestFrameFlexArithmetic.test_arith_flex_series_broadcasting  s    ryy'//7?STrvvrvv.c
S$KHI9,';<H1G,
f/r'   c                   \        . \        R 7      p\        RR.R7      p\        ^^.^^..RR.R7      p\        P                  ! \
        RR7      ;_uu_ 4        VP                  VRR7       RRR4       \        P                  ! \
        RR7      ;_uu_ 4        VP                  VR,          R^R	7       RRR4       R#   + '       g   i     LZ; i  + '       g   i     R# ; i)
rJ   rr   r   r   rV  r   ErU  Nrx  )r   r  r   r   r   rz  rL  sub)rF   ser_len0df_len0ry   s   &   r%   test_arith_flex_zero_len_raises7TestFrameFlexArithmetic.test_arith_flex_zero_len_raises  s     "F+S#J/AA'#s<]].lCCFF8F, D ]].lCCKK3dqK9 DC DC DCCs   B?C?C	C#	c                    \         P                  ! ^ ^\         P                  ^^^.RR7      p\        RV/\	        ^4      R7      pVP                  ^ 4      P                  ^4      pVP                  ^^ R7      p\        P                  ! WC4       R# )r   floatrJ   rs   r8  rU  N)	r"   r#   r   r   r   fillnarL  rw   rx   )rF   datry   rz   r{   s   &    r%   test_flex_add_scalar_fill_value7TestFrameFlexArithmetic.test_flex_add_scalar_fill_value  so    hh1bffaA.g>s|584iilq!ffQ1f%
c'r'   c                    \        . RO. ROR7      p\        . RO. ROR7      p\        . RO. ROR7      pVP                  V4      p\        P                  ! WC4       R# )r   r8  N)r   r;   r   r   r   )r   r;   r   r;   r   r+  )r   r;   r   r;   r;   )r   r   r;   r;   r   )r   r  rw   rx   )rF   r  r  r   r   s   &    r%   'test_sub_alignment_with_duplicate_index?TestFrameFlexArithmetic.test_sub_alignment_with_duplicate_index  sA    ?	3_OD
f/r'   c                8   \        R \        P                  ! ^
4      R\        P                  P	                  ^4      P                  ^
4      /4      p\        W!4      ! V4      pR R .Vn        R R .Vn        \        W!4      ! V4      p\        P                  ! WC4       R# rr   r   N)	r   r"   r   r   r   r   r   rw   rx   )rF   rb  ry   r   r   s   &&   r%   &test_arithmetic_with_duplicate_columns>TestFrameFlexArithmetic.test_arithmetic_with_duplicate_columns  s{     RYYr]C1F1Fq1I1P1PQS1TUV2?2&:3Z
$
f/r'   levelNc                   \        R . ROR. RO/4      pVP                  P                  R4      Vn        \        R. R	OR
. R	O/4      pVP                  P                  RR.4      Vn        VP                  W1R7      p\        R. ROR
. RO/4      pVP                  P                  RR.4      Vn        \        P
                  ! WE4       R# )rr   r   L1L2)r  Nr   r   r;   r+  )rr   r   r   r   r   )rr   D)r   r   	set_namesrL  rw   rx   )rF   r  r  r  r   r   s   &&    r%   test_broadcast_multiindex1TestFrameFlexArithmetic.test_broadcast_multiindex  s     ii89kk++D1Y
IFGkk++T4L9*j)ZKL#++55tTlC
f/r'   c           	     |   \        R . ROR. RO/\        P                  ! R.R.. RO.. ROR7      R7      p\        R.\        P                  ! R.R..RR.R7      R7      p\        R . ROR. RO/\        P                  ! R.R.. RO.. ROR7      R7      pVP	                  V^ R	7      p\
        P                  ! WC4       R
# )    r   r    scenmodnamesr8  皙?r   Nr+  r   r   r   r  r  r  id)ffffff?333333@333333@)r  皙@g@r   r
   from_productr   rL  rw   rx   rF   ry   seriesr   r   s   &    r%    test_frame_multiindex_operations8TestFrameFlexArithmetic.test_frame_multiindex_operations  s    9dI.))y)1F
 E))C53%.P

 ?D/:))y)1F
 Q'
f/r'   c           	     z   \        R ^.R^./\        P                  ! R.R..RR.R7      R7      p\        . R
O\        P                  ! R.R.. RO.. ROR7      R7      p\        R . ROR. RO/\        P                  ! R.R.. RO.. ROR7      R7      pVP	                  V^ R7      p\
        P                  ! WC4       R	# )r  r  r   r    r  r  r  r8  r   N)      $@      4@g      >@r  r  )g      &@   g      ?@)g      *@g      7@g     @@r  r  s   &    r%   <test_frame_multiindex_operations_series_index_to_frame_indexTTestFrameFlexArithmetic.test_frame_multiindex_operations_series_index_to_frame_index  s    A3qc"))C53%.P

 ))y)1F
 #T+=>))y)1F
 Q'
f/r'   c                   \        R . ROR. RO/\        P                  ! R.R.. RO.. ROR7      R7      p\        R.\        P                  ! R	.R..RR.R7      R7      p\        R \        P
                  R\        P
                  /\        P                  ! RRRRR	\        P
                  3.. ROR7      R7      pVP                  V^ R
7      p\        P                  ! WC4       R# )r  r  r   r    r  r  r  r8  r  r!   r   Nr+  r  r  r  r   r    r   r   r    r   )r   r    r;   )
r   r
   r  r   r"   r   from_tuplesrL  rw   rx   r  s   &    r%   )test_frame_multiindex_operations_no_alignATestFrameFlexArithmetic.test_frame_multiindex_operations_no_align  s    9dI.))y)1F
 E))C53%.P

 2664(((!!!#rvv&	 ,
 Q'
f/r'   c                   \        R . ROR. RO/\        P                  ! . RO. ROR7      R7      p\        R.\        P                  ! R.R..RR.R7      R7      p\        R R	R
\
        P                  .RRR\
        P                  ./\        P                  ! . RO. ROR7      R7      pVP                  V^ R7      p\        P                  ! WC4       R# )r  r  r   r    r  r  r  r8  r  r  r  r  r  r   Nr+  r  r  r  )r   r!   r;   r  
r   r
   r  r   r  r"   r   rL  rw   rx   r  s   &    r%   +test_frame_multiindex_operations_part_alignCTestFrameFlexArithmetic.test_frame_multiindex_operations_part_align#  s    9dI.((
 ,

 E))C53%.P

 Cbff%tc3-?@((
 ,

 Q'
f/r'   c           	        \        . RO. RO.RR.\        P                  ! . RO. ROR7      R7      p\        R	.\        P                  ! R.R..RR.R7      R
7      p\        RR\
        P                  .RR\
        P                  ..RR.\        P                  ! . RO. ROR7      R7      pVP                  V^R7      p\        P                  ! WC4       R# )r   r  r  r   r    r  r  r  r   r  r8  r  r  r  r  r   Nr+  r  r  r  r  r  s   &    r%   1test_frame_multiindex_operations_part_align_axis1ITestFrameFlexArithmetic.test_frame_multiindex_operations_part_align_axis1D  s     	",**
 ,
 E))C53%.P

 3#sBFF!34,**
 ,
 Q'
f/r'   r=   )rl  rk  rm  )rL  r  mulr  )rl  rm  rk  __truediv__)rh   ri   rj   rk   rF  rP  rZ  rg  r   r   r   rq  r   ru  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  rl   rm   rn   s   @r%   rB  rB    s"    1	00&6, [[T#DE&0 F&0P [[UE!QK0* 1*M& [[T#?@	? A	?
C0:(0 [[T#ST0 U0 [[Wq$i00 1000000:0B#0 #0r'   rB  c                     a  ] tR tRt o R tR tR tR tR tR t	R t
]P                  P                  R	R
R.4      R 4       t]P                  P                  R^^.R]P                   ! ^^.4      ]! ^^4      ]! ^^.4      .4      R 4       tR tR tR t]P                  P                  RRR R!R"R#R$]P.                  ! ^R4      R3]P0                  ! ^R4      R3.4      ]P                  P                  R]P4                  ]P6                  ]P8                  ]P:                  ]P<                  ]P>                  .R R7      R 4       4       t R t!R t"Rt#V t$R# )%TestFrameArithmeticij  c                    \        R R .RR7      p\        ^^.^^..4      pW!,          p\        ^ V^V/4      p\        P                  ! W44       R# )r   rS  rJ   Nr   r   rw   rx   )rF   r<  ry   r   r   s   &    r%   test_td64_op_nat_casting,TestFrameArithmetic.test_td64_op_nat_castingk  sT     eU^+<=AA'(aa-.
f/r'   c                   \         P                  ! ^4      P                  ^^4      p\        VRR.. ROR7      pV^.R3,          pVP                  ^VP                  ^,          38X  g   Q h\        ^^.^^.^^..VP
                  VP                  VP                  R7      pW#,           p\        P                  ! WT4       W2,           p\        P                  ! WT4       R# r   TFr   r   r   r   rE   Nr   
r"   r   r   r   r   r   r   rE   rw   rx   )rF   r$   ry   rowliker   r   s   &     r%   'test_df_add_2d_array_rowlike_broadcasts;TestFrameArithmetic.test_df_add_2d_array_rowlike_broadcastsu  s    iil""1a(sT5MIqc1f+}}BHHQK 0000VaVaV$JJ(( ))
 
f/
f/r'   c                   \         P                  ! ^4      P                  ^^4      p\        VRR.. ROR7      pVR^.3,          pVP                  VP                  ^ ,          ^38X  g   Q h\        ^^.^^.^	^
..VP
                  VP                  VP                  R7      pW#,           p\        P                  ! WT4       W2,           p\        P                  ! WT4       R# r  r  )rF   r$   ry   colliker   r   s   &     r%   'test_df_add_2d_array_collike_broadcasts;TestFrameArithmetic.test_df_add_2d_array_collike_broadcasts  s    iil""1a(sT5MIa!f+}}!a 0000VaVaW%JJ(( ))
 
f/
f/r'   c                   Tp\         P                  ! ^4      P                  ^^4      p\        VRR.. R	OR7      pV^.R3,          pVP                  ^VP                  ^,          38X  g   Q h\        VP                  R,          V4      ! VP                  4       4      \        VP                  R,          V4      ! VP                  4       4      \        VP                  R,          V4      ! VP                  4       4      .p\        WuP                  VP                  R7      p\        WS4      ! V4      p	\        P                  ! W4       R# )
r   TFrr   r   r   r   r   Nr   )r"   r   r   r   r   r   r   squeezer   r   rw   rx   )
rF   r3   rd  opnamer$   ry   r  exvalsr   r   s
   &&&       r%   )test_df_arith_2d_array_rowlike_broadcasts=TestFrameArithmetic.test_df_arith_2d_array_rowlike_broadcasts  s     *iil""1a(sT5MIqc1f+}}BHHQK 0000 BFF3K():;BFF3K():;BFF3K():;
 VZZrxxH$W-
f/r'   c                t   Tp\         P                  ! ^4      P                  ^^4      p\        VRR.. ROR7      pVR^.3,          pVP                  VP                  ^ ,          ^38X  g   Q hR\        VR,          V4      ! VP                  4       4      R\        VR,          V4      ! VP                  4       4      /pRpVR	9   d*   \         P                  ! R VP                  4        4       !  p\        WuP                  VP                  VR7      p	\        WS4      ! V4      p
\        P                  ! W4       R# )
r   TFr   r   Nc              3   8   "   T F  qP                   x  K  	  R # 5irC   )r   ).0r   s   & r%   	<genexpr>PTestFrameArithmetic.test_df_arith_2d_array_collike_broadcasts.<locals>.<genexpr>  s     $G!XXs   r  r   )__rmod____rfloordiv__)r"   r   r   r   r   r   r  common_typer   r   r   rw   rx   )rF   r3   rd  r  r$   ry   r  r  rE   r   r   s   &&&        r%   )test_df_arith_2d_array_collike_broadcasts=TestFrameArithmetic.test_df_arith_2d_array_collike_broadcasts  s    *iil""1a(sT5MIa!f+}}!a 0000 '"T(F+GOO,=>72e9f-goo.?@

 22 NN$Gv}}$GHEVZZrxxuU$W-
f/r'   c                (   \        R R.R R ..4      pV^,          pVP                  P                  R 4      pVR8H  P                  4       '       g   Q h^V,          pVP                  P                  R 4      pVR8H  P                  4       '       g   Q hR# )FTc                     V P                   # rC   kindr   s   &r%   <lambda>:TestFrameArithmetic.test_df_bool_mul_int.<locals>.<lambda>      affr'   r   c                     V P                   # rC   r  r  s   &r%   r  r    r  r'   N)r   r,  applyr   )rF   ry   r   kindss   &   r%   test_df_bool_mul_int(TestFrameArithmetic.test_df_bool_mul_int  s     u~67a ##$45!!####R##$45!!####r'   c                    \        R . ROR. RO/4      pW,           p\        R . ROR. RO/4      p\        P                  ! W#4       R# )rr   r   Nr   r+  )aabbccr;   r   r   r   rw   rx   )rF   r   r   r   s   &   r%   test_arith_mixed$TestFrameArithmetic.test_arith_mixed  s>    #Y?@c#5sIFG
f/r'   r   rr   r   c                    \        R RR.RRR./4      pV! V^4      V,          pV! W2,          ^4      p\        P                  ! WE4       R# )rr   g?gffffff
@r   g      @Ng333333)r   rw   r.  )rF   all_arithmetic_functionsr   ry   r   r   s   &&&   r%   test_arith_getitem_commute.TestFrameArithmetic.test_arith_getitem_commute  sJ    c3ZsDk:;)"a05+BGQ7
v0r'   r   c                    \        R ^^.R^^./4      p\        R ^^.R^^./4      pW!,           p\        P                  ! WC4       R# r  r
  )rF   r   ry   r   r   s   &&   r%   &test_arith_alignment_non_pandas_object:TestFrameArithmetic.test_arith_alignment_non_pandas_object  sO    
 aVS1a&12cAq63A78
f/r'   c                   \        \        P                  ! ^^
RR7      P                  ^^4      . R
O. ROR7      pVP	                  R4      P
                  p\        VP
                  V,           VP                  VP                  R7      p\        P                  ! W,           V4       \        VP
                  P                  V,           P                  VP                  VP                  R7      p\        P                  ! VP                  V^ R7      V4       \        VR,          4      p\        VP
                  V,           VP                  VP                  R7      p\        P                  ! W,           V4       \        VP
                  P                  V,           P                  VP                  VP                  R7      p\        P                  ! VP                  VRR7      V4       \        P                  P                  ^4      P                  VP                  4      p\        VP
                  V,           VP                  VP                  R7      p\        P                  ! VP                  V4      V4       R	# )r   f8rJ   r   r   r   r   r   r   Nr   r   )r   r"   r   r   r  r   r   r   rw   rx   r   rL  r   r   r   r   )rF   ry   val1addedval2val3s   &     r%   test_arith_non_pandas_object0TestFrameArithmetic.test_arith_non_pandas_object  s   IIa4(00A6+!
 uuSz  "))d*"((BJJO
bi/299;;-00"**U
bffTf2E:BuI"))d*"((BJJO
bi/299;;-00"**U
bffTf8%@yy$$Q'..rxx8"))d*"((BJJO
bffTlE2r'   c           	     <   Tp\         P                  ! \         P                  ! R RR7      4      p^^.p\        V.VR7      p^
p\	        WR4      ! V4      p\        V Uu. uF  p\	        W4      ! V4      NK  	  up.VR7      p	\
        P                  ! Wy4       R# u upi )        r   )startendr   N)r   CategoricalIndexinterval_ranger   r   rw   rx   )
rF   rd  rb  indr   ry   numr   nr   s
   &&        r%   .test_operations_with_interval_categories_indexBTestFrameArithmetic.test_operations_with_interval_categories_index  s    %!!""3"3#3"GH1vvs+%DADqwq~c2DABCP
f/ Bs   Bc           	        \        R \        P                  ! R4      \        P                  ! R4      .R\        P                  ! R4      \        P                  ! R4      ./R R.RR7      pVR .,          pW,
          p\        R \        P                  ! ^ 4      \        P                  ! ^ 4      .R\        P
                  \        P
                  ./RR .R7      p\        P                  ! W44       R	# )
rs   20192020ru   20182021M8[ns]r   rE   r   N)r   r   r   rW  r"   r   rw   rx   )rF   ry   r  r   r   s   &    r%   test_frame_with_frame_reindex1TestFrameArithmetic.test_frame_with_frame_reindex  s    V,bll6.BCV,bll6.BC EN
 %kR\\!_bll1o6?OPEN
 	f/r'   zvalue, dtyper   <m8[ns]<M8[ns]rb  c                    V P                   # rC   )rh   r  s   &r%   r  TestFrameArithmetic.<lambda>G  s    ajjr'   )r,   c           
        \         P                  R 3\         P                  R 3\         P                  R 3\         P                  R 30p\        W#4      p\        RVP                  VP                  ./VP                  R7      p\         P                  R3\         P                  R3\         P                  R3\         P                  R3\         P                  R3\         P                  R3\         P                  R3\         P                  R 3\         P                  R30	p\        RRR7      p	V	R	J;'       d"    \        V	P                  4      \        R
4      8  p
W3V9   Ed   R	pVR8X  d   V\         P                  8X  g   VR8X  d   V\         P                  8X  d   R	pM[VR8X  d   RpMQV\         P                  J d.   RpVR 8X  d$   \        P                  '       d   V^ 8X  d   \         pMRVP"                   R2p\$        P&                  ! \(        VR7      ;_uu_ 4        \*        P,                  ! VRR7      ;_uu_ 4        V! WvP                  4       R	R	R	4       R	R	R	4       R	# W3V9   d   V\         P                  \         P                  39   dl   \        P                  '       d   V^ 8X  d   V
'       d   \         pMR	p\*        P,                  ! VRR7      ;_uu_ 4        V! WvP                  4       R	R	R	4       R	# Rp\$        P&                  ! \.        VR7      ;_uu_ 4        V! WvP                  4       R	R	R	4       R	# \*        P,                  ! R	4      ;_uu_ 4        V! WvP                  4      P0                  pV! Wr4      P0                  pR	R	R	4       \*        P2                  ! XX4       R	#   + '       g   i     ELd; i  + '       g   i     R	# ; i  + '       g   i     R	# ; i  + '       g   i     R	# ; i  + '       g   i     Ly; i)rd   rr   rJ   r1  r0  
complex128r(   ignore)errorsNz2.13.1z3ufunc 'remainder' not supported for the input typesz-numpy boolean subtract, the `-` operator, is zcannot perform __z7__ with this index type: (DatetimeArray|TimedeltaArray)r   zevaluating in Pythonz+operator '.*' not implemented for .* dtypes)r   truedivpowrL  r  r8   r   rD   rE   r  r  r   r   __version__r1   rn  UserWarningrh   r   r   r   rw   assert_produces_warningrz  r,  r.  )rF   rb  rD   rE   r6   skipelemry   invalidr   ne_warns_on_opwarnr   r   r   s   &&&&&          r%   test_binop_other$TestFrameArithmetic.test_binop_other0  s   6 v&\\6"\\6"\\6"	
 E)djj$**56djjI \\9%\\9%y)\\9%\\9%\\9%\\9%\\6"\\<(

 (	(C4WWGBNN,CghFW,W;'!D"rX\\'9"rX\\'9,&Kx||#EVO(((3q8&D (} 5A A 
 y44//<RSSr::& T 54 [D hllHLL11$$$3q8&&DD//<RSSr::& TS D]]#6cBBr::& CB ++D11B

+22b=// 2 ""6843 TSS 544 TSS
 CBB 21sH   !N><N*	N>OO&/O:*N;5	N>>O	O#	&O7	:P
	c                p   \         P                  ! \        ^^.4      \        ^^.4      .4      p\         P                  ! \        ^^.RR7      \        ^^.4      .4      p\        ^^.^^..VR7      p\        ^^.^^..VR7      pW4,
          p\        ^ ^ .^ ^ ..VR7      p\        P
                  ! WV4       R# )r   Int8rJ   r   Nr
   from_arraysr   r   rw   rx   rF   midxmidx2r   r   r   r   s   &      r%   *test_arithmetic_midx_cols_different_dtypes>TestFrameArithmetic.test_arithmetic_midx_cols_different_dtypes  s    %%vq!f~vq!f~&FG&&1vV(DfaQRVn'UV1a&1a&)48Aq6Aq6*E:q!fq!f-t<
f/r'   c                p   \         P                  ! \        ^^.4      \        ^^.4      .4      p\         P                  ! \        ^^.RR7      \        ^^.4      .4      p\        ^^.^^..VR7      p\        ^^.^^..VR7      pW4,
          p\        R^.R^..VR7      p\        P
                  ! WV4       R# )r   rE  rJ   r   NrF  rH  s   &      r%   :test_arithmetic_midx_cols_different_dtypes_different_orderNTestFrameArithmetic.test_arithmetic_midx_cols_different_dtypes_different_order  s    %%vq!f~vq!f~&FG&&1vV(DfaQRVn'UV1a&1a&)48Aq6Aq6*E:r1gAw/>
f/r'   r=   Nr   r;   )r   i8)r   r  )            r  )y              ?r5  )rS  r5  )Trd   )%rh   ri   rj   rk   r  r  r  r  r  r  r  r   r   r   r  r"   r#   r   r   r  r  r%  r.  timedelta64
datetime64r   rL  r  r  r8  r  r9  rB  rK  rO  rl   rm   rn   s   @r%   r  r  j  s~    00*0*0,06$0 [[US#J/1 01 [[Aq66288QF#3U1a[%A-P0034	00( [[!^^B%y1]]2t$i0		
 [[LLLLLLLLLL	
 !  I52I5V00 0r'   r  c                     \        \        P                  P                  ^4      P	                  ^4      P                  ^^4      RR.R7      p \        \        P                  R7      pW,           p\        V P                  \        P                  ,          V P                  R7      p\        P                  ! W#4       \        P                  ! \        RR7      ;_uu_ 4        W8H   RRR4       \        V P                  P!                  R4      V P                  R7      p\        P                  ! \        RR7      ;_uu_ 4        WA8H   RRR4       R#   + '       g   i     Ls; i  + '       g   i     R# ; i)	r;   rr   r   r   rJ   znot alignedr   Nr,  )r   r"   r   r   r   r   r   float64r   r   r   rw   rx   r   r   r   ra   )ry   r<  r   r   r  s        r%   ,test_frame_with_zero_len_series_corner_casesrX    s     

		a 003;;AqACQT:
B rzz
"CXFRVV+RZZ@H&+	z	7	7
	 
8
 BIINN8,bjj
AC	z	7	7
 
8	7 
8	7 
8	7	7s   E?E!E	!E2	c                      \        R R.\        P                  R7      p \        ^^.R R.R7      pW,           pT p\        P
                  ! W#4       R# )rr   r   r-  r8  N)r   r"   rW  r   rw   rx   )ry   r<  r   r   s       r%   ,test_zero_len_frame_with_series_corner_casesrZ    sD    	C:RZZ	8B
!QSz
*CXFH&+r'   c                      R \        RR\        P                  .4      /p \        V 4      pVP	                  ^R7      p\        . RO4      p\
        P                  ! W#4       R# )Onerr   333333?r   N)rr   r]  r   )r   r"   r   r   sumrw   r.  )r   ry   r   r   s       r%   +test_frame_single_columns_object_sum_axis_1r_    sR     	vsC()D 
4BVVV^Fm$H6,r'   c                     a  ] tR tRt o R tR t]P                  P                  R]	P                  ]	P                  ]	P                  ]	P                  .4      R 4       t]P                  P                  RR0R1.4      ]P                  P                  R4      R 4       4       t]P                  P                  R. R2O4      R 4       tR tR tR tR tR tR t]P                  P                  R]	P0                  ]	P2                  ]	P4                  ]	P6                  ]	P8                  ]	P:                  .4      R 4       tR tR t R t!R t"R t#]P                  P                  RR	R]PH                  ! R]P                  PK                  ]&RR7      R7      R R!RR"R#R
RR$.4      R% 4       t']P                  P                  R&. R3OR3](PR                  ! . R3O](PT                  R'7      ]+! ^^4      .4      R( 4       t,]P                  P                  R&^^.R4](PR                  ! ^^.4      ]+! ^^4      .4      R) 4       t-R* t.R+ t/R, t0R- t1R.t2V t3R/# )5TestFrameArithmeticUnsortedi  c                   \         P                  ! R ^
RRR7      p\        \        P                  P                  ^4      P                  \        V4      4      VR.R7      pVP                  R4      pW#,           pVP                  P                  \        P                  J g   Q hW2,           pVP                  P                  \        P                  J g   Q hR# )z1/1/2011h
US/Eastern)r   freqtzr   r   zEurope/MoscowN)r   r   r   r"   r   r   r   r   
tz_convertr   rf  r   utc)rF   rngry   	df_moscowr   s   &    r%   *test_frame_add_tz_mismatch_converts_to_utcFTestFrameArithmeticUnsorted.test_frame_add_tz_mismatch_converts_to_utc  s    mmJNII!!!$44SX>cTWSX
 MM/2	||(,,...||(,,...r'   c                *   \         P                  ! R RRR7      p\        \        P                  P                  ^4      P                  \        V4      ^34      VR7      pW"R,          ,           pW",           p\        P                  VP                  R&   \        P                  ! W44       VR,          pW%P                  \        P                  P                  ^4      P                  \        V4      4      4      ,           p\        P                  ! W44       R# )z1/1/2000z1/1/2010Y)re  r8  NNr;   :r   Nr;   N)r   period_ranger   r"   r   r   r   r   r   r#  rw   rx   takepermutation)rF   ri  tsr   r   halfs   &     r%   test_align_frame,TestFrameArithmeticUnsorted.test_align_frame  s    ooj*3?II!!!$44c#h]C3
 g7 ffd
f/#wii		 5 5a 8 D DSY OPP
f/r'   rb  c                   \        R . ROR. RO/\        R7      pVP                  \        P                  4      pV! V^4      pV! V^4      P                  \        4      p\        P                  V\        P                  ! V4      &   \        P                  ! WE4       V! W"4      pV! W34      P                  \        4      p\        P                  V\        P                  ! V4      &   \        P                  ! WE4       V! W"P                  ^4      4      p\        P                  ! WE4       V! VP                  ^4      V4      p\        P                  ! WE4       R# )col1Ncol2rJ   )r;   r   {   N)r   r;   r   r   )
r   r  r  r"   r   r]   r   isnarw   rx   )rF   rb  ry   filledr   r   s   &&    r%   test_operators_none_as_na5TestFrameArithmeticUnsorted.test_operators_none_as_na  s     (&,?v
 266"Bfa=''/&(ff"#
f/Bf%,,V4&(ff"#
f/B		!%
f/BIIaL"%
f/r'   zop,resz ignore:elementwise:FutureWarningc                    \        W14      ! R 4      p\        VP                  4       P                  4       4      VJ g   Q hR# )rs   N)r   rd   r   )rF   rb  r{   re  r   s   &&&& r%   %test_logical_typeerror_with_non_validATestFrameArithmeticUnsorted.test_logical_typeerror_with_non_valid  s5    
 )%0FJJL$$&'3...r'   rL  r  r  r  r8  c                   \         P                  ! \        R 4      . RO. RO.. ROR7      p\        \        P
                  ! ^Q4      P                  ^^4      V. ROR7      P                  4       p\        P                  p\        \        VR4      pVf   R# \        . RO. RO4      p\        W14      ! VR^ R
7      p\        P                  ! VP                  4        UU	u. uF+  w  rV! VP                  VRRV3,          R3,          V	4      NK-  	  up	p4      P                  4       p
\         P"                  ! Wz4       \        RR	.RR.4      p\        W14      ! VR^ R
7      p\        P                  ! VP                  4        UU	u. uF*  w  rV! VP                  VRV3,          R3,          V	4      NK,  	  up	p4      P%                  V4      P                  4       p
\         P"                  ! Wz4       R# u up	pi u up	pi )abcr   r   secondthirdr  r   Nr   r  )r  re   r   r   r+  )firstr  r  )value1value2value3)r   r  g      Y@)r
   r  r   r   r"   r   r   ry  r   
IndexSlicer   r   r   concatitemsr   rw   rx   reindex_like)rF   rb  r   ry   idxopar   r   r   vr   s   &&         r%   test_binary_ops_align1TestFrameArithmeticUnsorted.test_binary_ops_align  s   
 ''%[19=.

 IIf%%b!,2
 *,	 	 mmhD);%y1':999:CSAq!Ga(!,C

*, 	 	f/C; 01(; II	J	s266#ad)Q,/3	JK\"Z\ 	
 	f/ D Ks   1G,
?0G2
c                   \         P                  ! R R.RR..4      p\        \        P                  ! RRR7      VR7      p\        R^R^/4      pVP                  4       pRR.VP                  n        VP                  4       pRVP                  n
        VP                  V^^R	7      pVP                  V^^R	7      pVP                  V^^R	7      pVP                  V^^R	7      p	VP                  V^RR	7      p
VP                  V^RR	7      p\        \        P                  ! . RO. RO.RR7      VR7      pWg3 F  p\        P                  ! W4       K  	  RR.VP                  n        WW3 F  p\        P                  ! W4       K  	  R
# )rr   r   r   r    int64rJ   r   lvl0lvl1)re   r  N)r;   r   )r   r;   r   r;   )r
   r  r   r"   r   r   rL   r   r  r   r*  r  r#   rw   rx   )rF   rI  ry   sr  s2res1r>  res3res4res5res6rz   r{   s   &             r%   &test_binary_ops_align_series_dataframeBTestFrameArithmeticUnsorted.test_binary_ops_align_series_dataframeC  sb    &&c
S#J'?@rwwvW5tDCC#$ggi#V,VVX vvaaqv)vvbqv*wwqqw*wwrw+wwqqw/wwrw0HHlL1A4
 <C!!#+   $V,+C!!#+ ,r'   c                t   \         P                  ! . R
ORR7      pVP                  R4      R,          pVP                  R4      R,          p\        R^^./VR7      p\        R^^./VR7      p\        R\        P
                  ^\        P
                  ./VR7      p\        P                  ! WE,           V4       R	# )
2011-01-01UTC)rf  z
Asia/TokyoNr;   Nrd  r   rr   r8  N)r  z
2011-01-02z
2011-01-03)r   DatetimeIndexrg  r   r"   r   rw   rx   )rF   baseidx1idx2r  r  rz   s   &      r%    test_add_with_dti_mismatched_tzs<TestFrameArithmeticUnsorted.test_add_with_dti_mismatched_tzsb  s     JuU|,R0|,R0q!fT2q!fT2rvvq"&&12$?
ci-r'   c                   VP                  VP                  R ,          4      pVR \        P                  VP                  RVP                  ^,          1R3&   W,           pVR,          P                  4       P                  pVR,          ^,          P                  4       p\        P                  ! VR,          P                  4       VP                  V,          4       \        P                  VP                  VP                  P                  V4      ( &   \        P                  ! VR,          VP                  VR,          P                  ,          4       \        P                  ! VR,          P                  VP                  4      R,          4      P                  4       '       g   Q h\        P                  ! VR,          4      P                  4       '       g   Q hW,           p\        P                  ! VP                  VP                  4       WA,           p	\        P                  ! VR,          4      P                  4       '       g   Q h\        P                  ! V	R,          4      P                  4       '       g   Q hV\        4       ,           p
\        P                  ! V
P                  4      P                  4       '       g   Q h\        4       V,           p\        P                  ! VP                  4      P                  4       '       g   Q h\        4       \        4       ,           pVP                  '       g   Q hVP                  VP                   RRR	1,          R7      p\        P"                  ! W,           V^,          4       W,           p\%        VRR7       W!,           p\%        VRR7       W",           p\%        VRR/R7       W,           p\%        VRR7       R# )
ro  r  Nr   rr   :Nr   Nr   rW  rJ   rN  )r   r   r"   r   r   dropnarL   rw   r.  isinisnanr   assert_index_equalr   r   r4  r   rx   r   )rF   re  rf  rp  
frame_copyr  indexerrz   
self_added	added_rev
plus_empty
empty_plusempty_emptyreverses   &&&&          r%   test_combineFrame-TestFrameArithmeticUnsorted.test_combineFramel  s    (():):3)?@
sO57VV
,))!,,c12(*##%++3!#))+
uSz002CGGG4DE,.FF(()
uSz3775:3C3C+DExxc
**:+;+;<R@AEEGGGG xxc
#'')))) .

j..0A0AB,	xxc
#''))))xx	#'++----
 !9;.
xx
))*..0000[;.
xx
))*..0000kIK/      %%k.A.A$B$.G%H
g3[1_E /5	2!/5	2 "55d4 -5	2r'   c                   VP                  VP                  ^ ,          4      pW,           pVP                  4        F/  w  rg\        P                  ! WqV,          WF,          ,           4       K1  	  VP                  4       p^VR&   \        V4      pW,           p	VP                  4        F/  w  rg\        P                  ! W,          WtV,          ,           4       K1  	  RV	9   g   Q h\        P                  ! V	R,          4      P                  4       '       g   Q hW$,           p\        P                  ! VP                  VP                  8H  4      '       g   Q hW$P                  R4      ,           p\        VRR/R7       W$P                  R4      ,           p\        VRR/R7       V^dV,          P                  R4      ,           p\        VRRR	R
RRRR/R7       V^dV,          P                  R4      ,           p\        VRRR	R
RRRR/R7       R# )r   r  r  r   NrJ   float16r  rr   r   rW  r  int32)r  r   r  rw   r.  to_dictr   r"   r  r   r,  rE   r]   r   r   )
rF   re  rf  rp  r  r  keyr  larger_serieslarger_addeds
   &&&&      r%   test_combine_series/TestFrameArithmeticUnsorted.test_combine_series  s    1 1! 45$kkmFC""1#&6&DE $ (c}-"2!'')FC""<#4a+oF *l"""xxS)*..0000 "*vvellfll23333 "MM)$<<5d4!MM)$<<5d4  3<"7"7"@@#wYWc7S	
  3<"7"7"@@#wYWc7S	
r'   c                `   VR ,          pVP                  VRR7      pVP                  4        F  w  rEWR,           p\        P                  ! W4,          VRR7       W4,          P                  V8X  g   Q hVP                  VP                  8X  d   VP                  R 8X  g   Q hKu  VP                  f   K  Q h	  VRR
 pVP                  VRR7      p\        P
                  ! VP                  VP                  4       VRR
 p	VP                  V	RR7      p
\        P                  ! W4       VP                  VR,          RR7      p\        \        P                  VP                  VP                  R7      p\        P                  ! Wk4       VR,          P                  VRR7      p\        \        P                  VP                  VP                  R7      p\        P                  ! Wk4       VR,          P                  . R	7      pVP                  VRR7      p\        V4      \        V4      8X  g   Q hR# )rr   r   r   F)check_namesNr3  r   :Nr   Nr   )rL  r  rw   r.  r*  r  r   rx   r   r"   r   r   r   r  r   )rF   datetime_framers  r  r  r   r   smaller_framesmaller_added
smaller_tssmaller_added2r   frames   &&           r%   test_combine_timeseries3TestFrameArithmeticUnsorted.test_combine_timeseries  s   C 
 ""2G"4&,,.HCXF""5:v5I:??c)))xx277"{{c))){{*** / 's+%))"7);
m11>3G3GHW
'++JW+E
m<  ##BrF#9FF...8N8N
 	f/  #'''9FF...8N8N
 	f/ r"**2*62G,6{c"g%%%r'   c                   V^,          p\         P                  ! VP                  VP                  ^,          4       V^,          pVP                  4        F=  w  rE\         P                  ! VP                  W$,          P                  ^,          4       K?  	  \	        VRR/R7       \        4       ^,          pVP                  P                  \        4       P                  4      '       g   Q h\        VP                  4      ^ 8X  g   Q hR# )r;   r   NrJ   )
rw   assert_numpy_array_equalr   r  r   r   r   equalsr   r   )rF   re  rf  r   r!   r  s   &&&   r%   test_combineFunc,TestFrameArithmeticUnsorted.test_combineFunc  s    q
##FMM;3E3E3IJ #Q&LLNDA''2C2F2M2MPQ2QR #6#t5q||""9;#4#455556>>"a'''r'   funcc           
     R   \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        P                  ! R^RR7      R7      pVP                  4       pVP                  R4      p\        P                  ! . VP                  O^N^N^N54      pV! WE4      p\        P                  ! VP                   V! VP                   VP                   4      4       Rp	\"        P$                  ! \&        \(        P*                  ! V	4      R	7      ;_uu_ 4        V! WG4       R
R
R
4       V! W4      p
\        P                  ! V
P                   V! VP                   VP                   4      4       V! V^ 4      p\        P                  ! VP                   V! VP                   ^ 4      4       Rp	\"        P$                  ! \&        V	R	7      ;_uu_ 4        V! WR,          4       R
R
R
4       R
#   + '       g   i     L; i  + '       g   i     R
# ; i)r;   r   rJ   z
2000-01-01r   )r   re  r   r   zNUnable to coerce to Series/DataFrame, dimension must be <= 2: (30, 4, 1, 1, 1)r   NzQCan only compare identically-labeled \(both index and columns\) DataFrame objectsr  )   r   )r   r"   r   r   r   r	   r   r  r   r   rL   r  r   r   rw   r  r   r   r   r   reescape)rF   r&   re  r  r  r  r  r   r   r   rE  result3s   &&&&        r%   test_comparisons,TestFrameArithmeticUnsorted.test_comparisons  s   
 II!!!$44W=$v,f5--bsC

 hhjooc".399.a..A./c
##FMM4

CJJ3OP7 	 ]]:RYYs^<< = |)
##NND!4!4cjjA	
 {A&
##GNND9K9KQ4OP  	 ]]:S11B/0 21 =< 211s   2	H(HH	H&	c                ,   \        R Uu/ uF  q"RRRRRR/bK  	  up4      p\        \        V4      pRP                  RR	.4      p\        P
                  ! \        VR
7      ;_uu_ 4        V! V^ 4       RRR4       R# u upi   + '       g   i     R# ; i)r   r   rs   r   ru   zrv   r   z;'[<>]=?' not supported between instances of 'str' and 'int'z,Invalid comparison between dtype=str and intr   Nr   )r   r   r   r   r   r   r   )rF   compare_operators_no_eq_ner   ry   r   r   s   &&    r%   *test_strings_to_numbers_comparisons_raisesFTestFrameArithmeticUnsorted.test_strings_to_numbers_comparisons_raises5  s    >MNoeS%e44oN
 H89hhM>
 ]]9C00b!H 10 O 100s   A=)
BB	c                N   \        \        P                  ! R	\        P                  R7      \	        \        R4      \        R7      R7      p\        P                  VP                  VP                  ^ ,          R3&   \        P                  ! RR7      ;_uu_ 4        VP                  ^ 8  pRRR4       \        P                  ! RR7      ;_uu_ 4        V^ 8  P                  pRRR4       \        P                  ! XX4       R#   + '       g   i     L`; i  + '       g   i     L<; i)

   rJ   r   r   rr   r6  )r?  Nraise)r  r   )r   r"   r   rW  r	   r   r  r   r   r   errstater   rw   r  )rF   
missing_dfr   r   s   &   r%   'test_comparison_protected_from_errstateCTestFrameArithmeticUnsorted.test_comparison_protected_from_errstateE  s    GGG2::.$v,f5

 4666
z''*C/0[[**!((1,H +[[)) 1n,,F *
##FH5	 +*))s   DDD	D$	c                D	   \        \        P                  ! ^4      P                  R4      4      p\        P                  ! ^^.4      p\        P
                  ! ^^.4      pVP                  p. ROp\        V4      p\        RR.RR.RR..4      pW8  p\        P                  ! W4       VP                  V8  p\        P                  ! WP                  4       Rp	Rp
Rp\        P                  ! \        V	R7      ;_uu_ 4        W8   RRR4       \        P                  ! \        V	R7      ;_uu_ 4        W8   RRR4       W8  p\        P                  ! W4       VP                  V8  p\        P                  ! WP                  4       \        P                  ! \        V
R7      ;_uu_ 4        W8   RRR4       \        P                  ! \        VR7      ;_uu_ 4        VP                  V8   RRR4       \        RR.RR.RR..4      pW8H  p\        P                  ! W4       \        P                  ! \        V	R7      ;_uu_ 4        W8H   RRR4       \        P                  ! \        V	R7      ;_uu_ 4        W8H   RRR4       W8H  p\        P                  ! W4       VP                  V8H  p\        P                  ! WP                  4       \        P                  ! \        V
R7      ;_uu_ 4        W8H   RRR4       VP                  P                  VP                  8w  g   Q h\        \        P                  ! ^4      P                  R4      \!        R4      \!        R	4      R
7      pVP"                  Vn        VP$                  Vn        \        P                  ! \        V	R7      ;_uu_ 4        W8H   RRR4       \        P                  ! \        V	R7      ;_uu_ 4        W8H   RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELo; i  + '       g   i     ELG; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELy; i  + '       g   i     L; i  + '       g   i     R# ; i)r   FTz5Unable to coerce to Series, length must be 2: given 3,Unable to coerce to DataFrame, shape must bez4operands could not be broadcast together with shapesr   NABr  r   r   r;   r;   r;   )r   r"   r   r   r#   
atleast_2dr   tuplerw   rx   r   r  r   r   r   r   r   r   r   )rF   ry   r    b_rb_clsttupr   r   msg1dmsg2dmsg2dbs   &           r%   test_boolean_comparison3TestFrameArithmeticUnsorted.test_boolean_comparisonQ  s0    ryy|++F34HHaVmmQF#eeCj uenudmdD\JK
f/Q
##FOO<G>G]]:U33H 4 ]]:U33H 4
 
f/S
##FOO<]]:U33H 4 ]]:V44IIO 5 uentUmeU^LM
f/]]:U33I 4 ]]:U33I 4 
f/c!
##FOO<]]:U33I 4 yy#))+++ IIaL  ($t*DK
 ::]]:U33I 4 ]]:U33I 43m 433 433 433 544 433 433 433 43 433sl   O/2P,PP+P?8Q2Q'/Q; R/P 	P	P(	+P<	?Q	Q$	'Q8	;R	R	c                (   \        R 4      p\        \        P                  ! ^
\	        V4      ,          4      P                  R\	        V4      4      V\        ^
4      R7      p^dVP                  R^R13,          P                  4       ,          p\        R4      p\        R4      pVP                  4       pWd,          V,           P                  VR7      pWd;;,          V,          uu&   VP                  VR7      pVP                  4       pWd,          W4,          ,           P                  VR7      p	Wd;;,          W4,          ,          uu&   VP                  VR7      p
\        P                  ! Wx4       \        P                  ! Wy4       \        P                  ! Wz4       VP                  4       pWd,          V,
          P                  VR7      pWd;;,          V,          uu&   VP                  VR7      pVP                  4       pWd,          W4,          ,
          P                  VR7      p	Wd;;,          W4,          ,          uu&   VP                  VR7      p
\        P                  ! Wx4       \        P                  ! Wy4       \        P                  ! Wz4       R# )abcdefgr   r   bedcfbcdefr   NrN  )r   r   r"   r   r   r   r   r#  rL   r   rw   rx   )rF   r   X_origZblock1subsXresult1rE  r  result4s   &          r%   test_inplace_ops_alignment6TestFrameArithmeticUnsorted.test_inplace_ops_alignment  s    y/IIb3w<'(00S\B)

 &++a2g&++--gG} KKM9q=))$)7		Q	))D))KKM9qy(11$1?		QY	))D))
g/
g/
g/ KKM9q=))$)7		Q	))D))KKM9qy(11$1?		QY	))D))
g/
g/
g/r'   c                   \        . RO4      p\        \        P                  P	                  ^4      P                  ^ ^^
R7      P                  R^4      4      pVP                  4       pTpV^,          p\        P                  ! W44       \        P                  ! V^,           V4       W4J g   Q hVP                  VP                  J g   Q hVP                  4       pTpV^,          p\        P                  ! WV4       \        P                  ! V^,           V4       WVJ g   Q hVP                  VP                  J g   Q hVP                  4       pTpVR,          p\        P                  ! W44       \        P                  ! VR,           V4       VP                  4       pTpVR,          p\        P                  ! WV4       \        P                  ! VR,           V4       WVJ g   Q hVP                  VP                  J g   Q h\        P                  P	                  ^4      P                  ^ ^
^R7      p\        RVP                  4       RR/4      pVP                  4       pTpVR;;,          ^,          uu&   \        RVP                  4       ^,           RR/4      p\        P                  ! WX4       \        P                  ! Wh4       VP                  VP                  J g   Q hVP                  4       pTpVR;;,          R,          uu&   \        RVP                  4       R,           RR/4      p\        P                  ! WX4       \        P                  ! Wh4       VP                  VP                  J g   Q hR# )	r   r   r  rr   r   rs   Nr+  rN  )r   r   r"   r   r   r   r   rL   rw   r.  _mgrrx   )	rF   s_origdf_origr  r  ry   r  r$   r   s	   &        r%   test_inplace_ops_identity5TestFrameArithmeticUnsorted.test_inplace_ops_identity  s    	"II!!!$--a-<DDRK

 KKM	Q
q%
vz1-wwvv   \\^
a
b&
gk2.yyww#((""" KKM	S
q%
v|Q/\\^
c	
b&
gmR0yyww#((""" ii##A&//2A/>S#((*c59:\\^
31c388:>3>?
b+
c,ww#(("""\\^
33c388:#3S%@A
b+
c,ww#(("""r'   andz__idiv__ not implemented)r   reason)marksrD  r  orr9  xorc                .   \        R . ROR. RO/4      p^pVR9   d   . ROVR &   VP                  4       pRV R2pRV R2p\        W%4      ! V4       \        WA4      ! V4      p\        P                  ! W&4       \        V4      p\        V4      V8X  g   Q hR# )	r   r    __ir_  Nr   r+  )r  r  r  )TFT)r   rL   r   rw   rx   r  )rF   rb  ry   operanddf_copyiopr   s   &&     r%   test_inplace_ops_identity26TestFrameArithmeticUnsorted.test_inplace_ops_identity2
  s    , _c9=>%%)BsG'')B4rl"R[ 	!7'0
b+b6"v!!!r'   valrJ   c           	        . ROp. R	Op\        \        P                  P                  ^4      P	                  R
4      VVR7      p\         P
                  p\        RVRVRV/VP                  R7      p\        P                  ! V! WA^ R7      ^,          V4       \        R. ROR. ROR. RO/VP                  R7      p\        P                  ! V! WA^R7      ^,          V4       R# )rr   r  rn  r  r   r8  r   Nr   r  rn  r  r   r   )r   r   r   r  r   r   r   )	r   r"   r   r   r   _align_for_opr   rw   rx   )rF   r  r   r   ry   alignr   s   &&     r%   test_alignment_non_pandas5TestFrameArithmeticUnsorted.test_alignment_non_pandas2  s      !II!!!$44V<
 ''c3S#s;288L
eB!4Q7B)S)S)<BHH
 	eB!4Q7Br'   c                   . ROp. ROp\        \        P                  P                  ^4      P	                  R4      VVR7      p\         P
                  pRp\        P                  ! \        VR7      ;_uu_ 4        V! WA^ R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V! WA^R7       RRR4       R#   + '       g   i     LI; i  + '       g   i     R# ; i)	rr   r   z5Unable to coerce to Series, length must be 3: given 2r   r   Nr   r  r  )	r   r"   r   r   r   r  r   r   r   )rF   r  r   r   ry   r  r   s   &&     r%   )test_alignment_non_pandas_length_mismatchETestFrameArithmeticUnsorted.test_alignment_non_pandas_length_mismatchN  s    !II!!!$44V<
 ''E]]:S11"" 2 ]]:S11"" 21 21 211s   9C0CC	C)	c           	        . ROp. ROp\        \        P                  P                  ^4      P	                  R	4      VVR7      p\         P
                  p\        P                  ! . R
O. RO. RO.4      p\        P                  ! V! W5^ R7      ^,          \        WSP                  VP                  R7      4       \        P                  ! V! W5^R7      ^,          \        WSP                  VP                  R7      4       Rp\        P                  ! . R
O. RO.4      p\        P                  ! \        VR7      ;_uu_ 4        V! W5^ R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V! W5^R7       RRR4       \        P                  ! R4      p\        P                   ! R4      p\        P                  ! \        VR7      ;_uu_ 4        V! W5^ R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V! W5^R7       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lo; i  + '       g   i     R# ; i)rr   r   r   r  r   NzGUnable to coerce to Series/DataFrame, dimension must be <= 2: (3, 3, 3)r   r  r  r+  r   r   r   )   r   	   r  )r   r"   r   r   r   r  r#   rw   rx   r   r   r   r   r   zerosr  r  )rF   r   r   ry   r  r  r   s   &      r%   'test_alignment_non_pandas_index_columnsCTestFrameArithmeticUnsorted.test_alignment_non_pandas_index_columnsa  s   !II!!!$44V<
 ''hh	9i89
""1%c2::>	
 	""1%c2::>	
 =hh	9-.]]:S11"" 2 ]]:S11"" 2 hhy!iiU
 ]]:S11"" 2]]:S11"" 21 21 21 21111s0   >H$5H7I
I$H4	7I	
I	I.	c                    \        R RR.RRR./4      pVR,          p\        P                  ! R4      ;_uu_ 4        \        W!4      ! V4       RRR4       R#   + '       g   i     R# ; i)rr   r  r   N)r   rw   r<  r   rF   rd  ry   r    s   &&  r%   test_no_warning+TestFrameArithmeticUnsorted.test_no_warning  sS    c3ZsDk:;sG''--B1!4 .---s   AA(	c                    \        R RR.RRR./4      pVR,          p\        P                  ! \        RR7      ;_uu_ 4        \	        W!4      ! V^ 4       RRR4       R#   + '       g   i     R# ; i)rr   r  r   Nztakes 2 positional argumentsr   )r   r   r   r   r   r(  s   &&  r%   test_dunder_methods_binary6TestFrameArithmeticUnsorted.test_dunder_methods_binary  sW    c3ZsDk:;sG]]9,JKKB1!Q7 LKKKs   AA/	c                x   \         P                  ! ^dRR7      P                  ^
^
4      p\         P                  ! R\        R7      p\        V4      pVP                  4       VR&   VP                  \        4      pW3P                  4       ,
          pWDP                  4       ,
          p\        P                  ! WV4       R# )r  rW  rJ   z0.XN)r  r   )r"   r   r   r   intr   r  r]   r  meanrw   rx   )rF   r  rn  r  r  r   r   s   &      r%   test_align_int_fill_bug3TestFrameArithmeticUnsorted.test_align_int_fill_bug  s    IIgY/77B?GGG3'lYY[E
jjxxz!#
f/r'   r=   N)r   F)__ne__T)rL  r  r  r  r8  r+  rQ  )4rh   ri   rj   rk   rk  ru  r   r   r   r   rL  r  r  r8  r}  filterwarningsr  r  r  r  r  r  r  r  r   r   r   r   r   r   r  r  r  r  r   r  r2   xfailAttributeErrorr  r"   r#   r  r   r  r  r%  r)  r,  r1  rl   rm   rn   s   @r%   ra  ra    ss    /0 [[x||X\\8<<9I9IJ002 [[X(9;K'LM[[ BC/ D N/
 [[T#JK$0 L$0L,>.;3z&
P,&\( [[	hkk8;;X[[(++V"1	"1H 
6L\.0`9#v [[LLkk'')2L (  !	
*"+*"& [[HHYbhh/!QK		
CC& [[UaVVRXXq!f5EuQPQ{$ST# U#$$#L580 0r'   ra  c                      \        R . RO/4      p \        . ROR7      pW,          p\        R \        P                  R\        P                  ./4      p\        P                  ! W#4       R# )rr   r8  r   Nr  r   r"   r   rw   rx   )r   r   r   r   s       r%   test_pow_with_realignmentr9    sN    c9%&DI&E[F#RVV456H&+r'   c                     \        \        P                  P                  ^4      P	                  ^ ^dR4      . ROR7      p \        . R	O. ROR7      pV P                  R4      VP                  R4      P                  R
^4      ,           p\        W P                  RR7      pV P                  R4      pW1,           p\        P                  ! WB4       W1P                  R4      ,           p\        P                  ! WB4       R# )r;   r   r8  r  Int64r-  N)r  r   r   r+  rN  )r   r"   r   r   r   r   to_numpyr   r   r]   rw   rx   )ry   r<  r   df_ear   s        r%   &test_dataframe_series_extension_dtypesr>    s    	
		a ))!S':O
B /
2C{{7#cll7&;&C&CB&JJH::WEHIIgE[F&+ZZ((F&+r'   c            
         \         P                  P                  ^4      P                  ^ RR4      p \	        V 4      pVP                  4       P                  ^R^R^R/4      p\         P                  VP                  ^ . RO3&   VP                  4       P                  ^R/4      p\         P                  VP                  ^ ^.3&   VP                  4       P                  ^R^R^R/4      p\         P                  VP                  ^ \         P                  ! ^^4      3&   VP                  4       P                  ^R^R^R/4      p\         P                  VP                  ^ \         P                  ! ^^4      3&   W3W#3WE33 F[  w  rgWg,           p\	        VP                   U	u/ uF  qWi,          Wy,          ,           bK  	  up	4      p
\        P                  ! W4       K]  	  R# u up	i )r;   i  r  N)d   r  )r   r   r"  )r"   r   r   r   r   rL   r]   r   r#  r   r   rw   rx   )r$   r  r  r  df4df5r   r   r{   r   r   s              r%   "test_dataframe_blockwise_slicelikerC    s   
))


"
+
+AtY
?C
C.C
((*

QGQ@
ACVVCHHQ	\ ((*

QL
)CvvCHHQV ((*

QGQ@
AC#%66CHHQ		!Q 
((*

QGQ@
AC#%66CHHQ		!Q 
SJ
;lT\\J\58!33\JK
c,	 < Ks   G
zdf, col_dtyper   r   r   r   abr   rW  r    r  c                    \        R \        P                  .R\        P                  ..\        R4      R7      pVP	                  RV/4      pV \        R.\        R4      R7      ,           p\        P                  ! W24       R# )	r  r   rD  r   r    r   r8  Ng      )r   r"   r   r   r]   r   rw   rx   )ry   	col_dtyper   r   s   &&  r%   /test_dataframe_operation_with_non_numeric_typesrG    sa     3-#rvv7dLHY/0H&$tCy11F&+r'   c                      \        ^ ..R.R7      p \        . RO.. ROR7      pW,           p\        \        P                  ^ ^ ... ROR7      p\        P                  ! W#4       R# )r   r  r   r   r   Nr  )r  r  r  r8  )r  r  r   r   s       r%   "test_arith_reindex_with_duplicatesrJ    sR    
1#

3C
).K
LCYF2661a.)3PQH&+r'   to_addc                 z   \        R ^^.R^^./4      pR\        V ^ ,          4       R2p\        P                  ! \        VR7      ;_uu_ 4        W,            RRR4       \        P                  ! \        VR7      ;_uu_ 4        W,            RRR4       R#   + '       g   i     LG; i  + '       g   i     R# ; i)r   r   zUnable to coerce list of z to Series/DataFramer   N)r   r`   r   r   r   )rK  ry   r   s   &  r%   "test_arith_list_of_arraylike_raiserM    s     
C!Qq!f-	.B%d6!9o%66J
KC	z	-	-
 
.	z	-	- 
.	- 
.	-	-	-	-s   	B	B)B&	)B:	c                      \        R . RO/4      p V P                  4       pV R ,          pVP                  pV^,          pVP                  VJg   Q h\        P                  ! W4       R# )rr   Nr+  )r   rL   _valuesrw   rx   )ry   r  r  valss       r%   %test_inplace_arithmetic_series_updaterQ    sW    	C#	$BggiGWF>>D
aKF>>%%%"&r'   c            	     0   \        ^..R.\        P                  ! ^ .^..RR.R7      R7      p \        ^..R.\        ^ .RR7      R7      p\        ^ ..R.\        P                  ! ^ .^..RR.R7      R7      pW,
          p\        P
                  ! W24       R# )zH
Regression test for: https://github.com/pandas-dev/pandas/issues/33765
r   r    r  r   r*  N)r   r
   r  r	   rw   rx   r  r  r   r   s       r%    test_arithmetic_multiindex_alignrU    s     
e''!qc
3*EC
 aSE#qc0D
EC
e''!qc
3*EH
 YF&+r'   c                     \        ^d\        P                  ! RR.RR..RR.R7      RR	.R
7      p \        \        P                  ! RR.RR..4      \        P                  ! RR..R.R7      RR	.R
7      p\        \        P                  ! . RO. RO.4      \        P                  ! RR.RR..RR.R7      RR	.R
7      pW,          p\
        P                  ! W24       R# )r@  1A1B2A2BLev1Lev2r  C1C2)r   r   r   g?g      ?g?g?N)r  r        9@r_  )r  r       F@r`  )r   r
   r  r"   r#   rw   rx   rT  s       r%   'test_arithmetic_multiindex_column_alignra     s    
''D\D$<(0@
 TlC XXT{S$K01''$vhGTlC
 XX/1IJK''D\D$<(0@
 TlH YF&+r'   c                  <   \        R R..\        P                  ! RR.4      R7      p \        RR..\        P                  ! R	R
.4      R7      p\        . RO.\        P                  ! . RO4      R7      pV P                  V^ R7      p\        P
                  ! W24       R# )r   r   rI  r   r   rU  Nrr   r   rr   r   r   r   r   r   )r   r   r   r   )rc  rd  re  rf  )r   r
   r  rL  rw   rx   rT  s       r%   6test_arithmetic_multiindex_column_align_with_fillvaluerg  9  s    
Cj\&&l'CDC Cj\&&l'CDC "#&&D
H WWSQW'F&+r'   c                      \        R \        R4      \        R4      4      p V R,          p\        \        P                  ! R4      \        R4      \        R4      4      p\        P
                  ! W4       R# )TrD  cdr   Nr   )r   r   r"   r   rw   rx   )ry   r   r   s      r%   test_bool_frame_mult_floatrj  M  sM    	4dT$Z	0B#XF$t*d4jAH&+r'   c                     \        . ROV R7      p\        . ROV R7      p\        . ROV R7      pVP                  4       VP                  4       ,
          p\        P                  ! WC4       R# )r   NrJ   )r   r;   Nr+  )r   r   N)r   r   to_framerw   rx   )any_int_ea_dtypeseries1series2r   r   s   &    r%   test_frame_sub_nullable_intrp  U  sS    \)9:GY&67G-=>H'"2"2"44F&+r'   zMignore:Passing a BlockManager|Passing a SingleBlockManager:DeprecationWarningc                    aa  ! VV3R  lR\         4      o ! V3R lR\        4      oS! RR. ROR. R	O/4      p V ^,          pS! RR. R
OR. RO/4      p\        P                  ! W4       W ,           p\        P                  ! W4       R# )c                   N   <a  ] tR tRt o ]V3R l4       t]V3R l4       tRtV tR# )Etest_frame_op_subclass_nonclass_constructor.<locals>.SubclassedSeriesid  c                   < S# rC   r=   rF   SubclassedSeriess   &r%   _constructorRtest_frame_op_subclass_nonclass_constructor.<locals>.SubclassedSeries._constructore  	    ##r'   c                   < S# rC   r=   )rF   SubclassedDataFrames   &r%   _constructor_expanddim\test_frame_op_subclass_nonclass_constructor.<locals>.SubclassedSeries._constructor_expanddimi  s	    &&r'   r=   N)	rh   ri   rj   rk   propertyrw  r|  rl   rm   )r?   r{  rv  s   @r%   rv  rs  d  s+     		$ 
	$ 
	' 
	'r'   rv  c                   l   <a a ] tR tRt oR.tV3R lV 3R llt]R 4       t]V3R l4       tRt	Vt
V ;t# )Htest_frame_op_subclass_nonclass_constructor.<locals>.SubclassedDataFrameim  my_extra_datac                   < V ^8  d   QhRR/# r:   r=   )r>   r?   s   "r%   r@   Utest_frame_op_subclass_nonclass_constructor.<locals>.SubclassedDataFrame.__annotate__p  s     	. 	.d 	.r'   c                4   < Wn         \        SV `  ! V/ VB  R # rC   )r  superrG   )rF   r  argskwargs	__class__s   &&*,r%   rG   Qtest_frame_op_subclass_nonclass_constructor.<locals>.SubclassedDataFrame.__init__p  s    !.Gd-f-r'   c                V    \         P                  ! \        V 4      V P                  4      # rC   )	functoolspartialr`   r  rU   s   &r%   rw  Utest_frame_op_subclass_nonclass_constructor.<locals>.SubclassedDataFrame._constructort  s    $$T$Z1C1CDDr'   c                   < S# rC   r=   ru  s   &r%   _constructor_sliced\test_frame_op_subclass_nonclass_constructor.<locals>.SubclassedDataFrame._constructor_slicedx  ry  r'   )r  )rh   ri   rj   rk   	_metadatarG   r~  rw  r  rl   rm   __classcell__)r  r?   rv  s   @@r%   r{  r  m  sF     $%		. 	. 
	E 
	E 
	$ 
	$ 	$r'   r{  	some_datarr   r   Nr+  r!  r	  )r   r     r  )sdfr   r   r{  rv  s      @@r%   +test_frame_op_subclass_nonclass_constructorr  ^  sx    ' '6 '$i $ kCC+K
LC1WF";ik0RSH&+YF&+r'   c                  *   \        R R4      p \        V P                  . RO/4      p\        V P                  . RO/4      pWP                  ,          W P                  ,          8H  p\        . ROV P                  R7      p\        P
                  ! W44       R# )Colsz	col1 col2rS  Nr+  )TTT)r   r   rx  r   rw   r.  )r  q1q2r   r   s        r%   test_enum_column_equalityr    si    $D	DIIy)	*B	DIIy)	*B		]bm+F(tyy9H6,r'   c                 R   \        \        R 4      R^ .R7      p\        \        R 4      R^ .R7      pVP                  P                  V 4      Vn        W,           p\        \        R 4      R^ .R7      pVP                  P                  V 4      Vn        \        P
                  ! W44       R# )r  r   )r   r   r   r  N)r   r   r   r]   rw   rx   )string_dtype_no_objectr  r  r   r   s   &    r%   test_mixed_col_index_dtyper    s    
DKc!
=C
DKc!
=C++$$%;<CKYFe3qcBH''../EFH&+r'   )@collectionsr   r   r   enumr   r  r   r  numpyr"   r   pandas.compat._optionalr   pandasr   r   r	   r
   r   pandas._testing_testingrw   pandas.core.computationr   r1   pandas.tests.frame.commonr   r   pandas.util.versionr   fixturer&   r6   r8   rp   r   rB  r  rX  rZ  r_  ra  r9  r>  rC  r   r   r   r]   r  rG  rJ  rM  rQ  rU  ra  rg  rj  rp  r4  r  r  r  r=   r'   r%   <module>r     s       	   >    7 ( R R  aXIx3HI J   :W; W;t}. }.Ht0 t0n|0 |0~	.,-"E0 E0P,,"-4 	S#Jc
+T$Z	@)LSzC:.T
CJJf 		
,,, VQF^$4vq!f~vqRSf~6V#WX Y	',&,2,(,, S!,!,H	-
,r'   