+
    yȇib                        ^ RI Ht ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHtHt ^ RIHt ^ RIt^ RIHtHtHtHtHtHtHtHtHtHtHtHtHt ^ RIH t! ^ RI"H#u H$t% ^ R	I&H't'  ! R
 R4      t( ! R R4      t)R# )    )annotations)datetimeN)	Timestamp)Pandas4Warning)is_integer_dtypeis_numeric_dtype)CategoricalDtype)CategoricalIndexDatetimeIndexDatetimeTZDtypeIndexIntervalIndex
MultiIndexPeriodIndex
RangeIndexSeriesStringDtypeTimedeltaIndexisnaperiod_range)BaseMaskedArrayc                  x   ] tR t^'t]P
                  ! ]! ^ ^^R7      ]! ]P                  ! ^]P                  R7      4      ]! ]P                  ! ^]P                  R7      4      ]! ]P                  ! ^]P                  R7      4      ]! ]! ^ ^^4      ]P                  R7      ]! ]! ^ ^^4      ]P                  R7      ]! ]! ^ ^^4      ]P                   R7      ]! ]! ^ ^^4      ]P"                  R7      ]! ]! R4      4      ]! . R?O4      ]! R^RR7      ]! . R@ORRR7      ]! . RAOR	RR7      ]P.                  ! ]! ^4      R
R7      .R7      R 4       tR tR tR tR tR tR tR tR t ]PB                  PE                  R4      R 4       t#R t$R t%R t&R t'R t(R t)R t*R t+R  t,R! t-]PB                  PE                  R4      R" 4       t.R# t/R$ t0R% t1R& t2R' t3R( t4]PB                  Pk                  R)R* R+ .4      ]PB                  PE                  R4      R, 4       4       t6R- t7]PB                  Pk                  R.R/R0.4      ]PB                  Pk                  R1R2R3.4      ]PB                  Pk                  R4R/R0.4      R5 4       4       4       t8R6 t9]PB                  Pt                  R7 4       t;R8 t<R9 t=R: t>R; t?R< t@R= tAR>tBR2# )BTestBasestartstopstepdtypeabcde20130101D)periodsfreqztimedelta64[ns])r   r$   zdatetime64[ns]right)closedparamsc                	    VP                   # Nparamselfrequests   &&r/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/test_old_base.pysimple_indexTestBase.simple_index(   s    B }}    c                	&   \        V\        4      '       d   \        P                  ! R 4       RP	                  . RO4      p\        P
                  ! \        VR7      ;_uu_ 4        \        V4      ! 4        RRR4       R#   + '       g   i     R# ; i)z#RangeIndex() is a valid constructor|matchN)zNIndex\(\.\.\.\) must be called with a collection of some kind, None was passedzPDatetimeIndex\(\) must be called with a collection of some kind, None was passedzQTimedeltaIndex\(\) must be called with a collection of some kind, None was passedz:__new__\(\) missing 1 required positional argument: 'data'z2__new__\(\) takes at least 2 arguments \(1 given\)z!'NoneType' object is not iterable)
isinstancer   pytestskipjoinraises	TypeErrortype)r.   r1   msgs   && r0   test_pickle_compat_construction(TestBase.test_pickle_compat_constructionK   s\    lJ//KK=>hh

 ]]9C00  1000s   $A??B	c                	   \        V\        \        \        34      '       d   \        P
                  ! R 4       TpR\        V4      P                   2p\        P                  ! \        VR7      ;_uu_ 4        VP                  ^4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        VP                  ^^4       RRR4       R#   + '       g   i     LQ; i  + '       g   i     R# ; i)z"Tested in test_ops/test_arithmeticz\This method is only implemented for DatetimeIndex, PeriodIndex and TimedeltaIndex; Got type r6   N)r8   r   r   r   r9   r:   r>   __name__r<   NotImplementedErrorshiftr.   r1   idxr?   s   &&  r0   
test_shiftTestBase.test_shift_   s    l]NK$PQQKK<=((,S	(:(:';= 	 ]].c::IIaL ;]].c::IIaO ;: ;::::s   6C4C$C!	$C5	c                	    Tp\         P                  ! \        R R7      ;_uu_ 4        \        V4      ! V. R7       RRR4       R#   + '       g   i     R# ; i)z"Index.name must be a hashable typer6   nameN)r9   r<   r=   r>   r.   r1   rG   s   && r0    test_constructor_name_unhashable)TestBase.test_constructor_name_unhashablem   s9     ]]9,PQQIc# RQQQs   AA	c           
     	   VP                  4       p\        V\        4      '       gU   R Vn        \	        V4      p\
        P                  ! W24       \	        VRR7      pRVn        \
        P                  ! W24       R# R R.Vn        \	        V4      p\
        P                  ! V\	        \	        . R	ORR7      R R.R7      4       \	        VRR.R7      p\
        P                  ! V\	        \	        . R	ORR7      RR.R7      4       R# )
foobarrK   objectr   )namesABN))rQ   one)rQ   two)rR   rW   )bazrX   )quxrW   )rZ   rX   )copyr8   r   rL   r   tmassert_index_equalrT   )r.   r1   expectedresults   &&  r0   test_create_index_existing_name(TestBase.test_create_index_existing_namet   s      $$&(J//!HM8_F!!&38%0F!HM!!&3#U^HN8_F!! '
 !%.$ 8C:6F!! '
 *r3   c                	   Tp\        V\        4      '       d   Q h\        V4      \        J d   \        P
                  ! R 4       \        VP                  4      '       g   \        V\        4      '       d   \        P
                  ! R4       \        VP                  4      P                  p\        V4      P                  pRP                  RV R2RV RV R2.4      p\        P                  ! \        VR7      ;_uu_ 4        V^,           RRR4       RP                  R	V R
2RV RV R2.4      p\        P                  ! \        VR7      ;_uu_ 4        ^V,           RRR4       VP                  RR4      p\        P                  ! \        VR7      ;_uu_ 4        V^,           RRR4       VP                  RR4      p\        P                  ! \        VR7      ;_uu_ 4        ^V,           RRR4       VP                  RR4      p\        P                  ! \        VR7      ;_uu_ 4        V^,           RRR4       VP                  RR4      p\        P                  ! \        VR7      ;_uu_ 4        ^V,           RRR4       R#   + '       g   i     EL; i  + '       g   i     ELG; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)zNot applicable for IndexTested elsewhere.r5   z'unsupported operand type\(s\) for \*: 'z' and 'int'zIcannot perform (__mul__|__truediv__|__floordiv__) with this index type: ()r6   Nz1unsupported operand type\(s\) for \*: 'int' and ''zLcannot perform (__rmul__|__rtruediv__|__rfloordiv__) with this index type: (*/z//)r8   r   r>   r   r9   r:   r   r   r   _datarC   r;   r<   r=   replace)	r.   r1   rG   typclslmsgrmsgdiv_errfloordiv_errs	   &&       r0   test_numeric_compatTestBase.test_numeric_compat   s/    c:....9KK23L..//:.4
 4
 KK+,399o&&3i  xx:3%{K%%(E3%q2
 ]]9D11!G 2xxDSEK%%(E3%q2
 ]]9D11G 2 ,,sC(]]9G44!G 5,,sC(]]9G44G 5 ||C.]]9L991H :||C.]]9L99H :9/ 211 211 544 54 :9 :99sH   
J	
J
J1%
K-
K5
K+	J	J.	1K	K	K(	+K<	c                	l   VP                   \        R 39   d   \        P                  ! R4       TpVP                   P                  R9   d   VP                  4       VP                  P                  4       8X  g   Q hVP                  4       VP                  4       P                  4       8X  g   Q hVP                  4       VP                  P                  4       8X  g   Q hVP                  4       VP                  4       P                  4       8X  g   Q hR# Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  4        RRR4       \        P                  ! \        VR7      ;_uu_ 4        VP                  4        RRR4       R#   + '       g   i     LO; i  + '       g   i     R# ; i)stringrc   iufcbmz&does not support operation '(any|all)'r6   N)r   rS   r9   r:   kindall_values	to_seriesanyr<   r=   rF   s   &&  r0   test_logical_compatTestBase.test_logical_compat   s   &(!33KK+,99>>X%779 1111779 3 3 5555779 1111779 3 3 5555:Cy44	 5y44	 54 54444s   7F4F"F	"F3	c                	    \        V\        4      '       d-   \        P                  ! R \	        V4      P
                   24       Tp\        P                  ! \        \        V4      4      V4       R# )Not a valid repr for N)
r8   r   r9   r:   r>   rC   r\   r]   evalreprrM   s   && r0   test_repr_roundtripTestBase.test_repr_roundtrip   sL    lM22KK/\0B0K0K/LMN
d49os3r3   c                	d   \        V\        4      '       d-   \        P                  ! R \	        V4      P
                   24       TpVP                  ^24      p\        P                  ! RR4      ;_uu_ 4        \        V4       R\        V4      9  g   Q h RRR4       R#   + '       g   i     R# ; i)r}   zdisplay.max_seq_itemsNz...)r8   r   r9   r:   r>   rC   repeatpdoption_contextr   strrM   s   && r0   test_repr_max_seq_item_setting'TestBase.test_repr_max_seq_item_setting   s}    lM22KK/\0B0K0K/LMNjjn6==IC((( >===s   5BB/	z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningc                		   / p\        V\        4      '       d   VP                  VR &   Mm\        V\        \        \
        34      '       d   \        P                  ! R4       M5VP                  \        8X  d!   VP                  R9   d   VP                  VR&   \        V4      pV! VP                  3RR/VB p\        VP                  \        4      '       d+   VP                  R4      P                  VP                   4      p\        V\"        \$        34      '       d   VP'                  R4      p\(        P*                  ! W4       \        V\        4      '       dN   VP,                  ! RRVP.                  /VB p\(        P0                  ! VP.                  VP.                  RR	7       R# \        V\2        4      '       d   R# \        V4      \4        J Ed   \        VP                  \6        P                  4      '       Eg   V! VP                  3RR
/VB p\(        P*                  ! WA4       \        VP8                  \:        4      '       Ed   \6        P<                  ! VP8                  P>                  VP8                  P>                  4      '       g   Q h\(        P0                  ! VP8                  P>                  VP8                  P>                  RR	7       \6        P<                  ! VP8                  P@                  VP8                  P@                  4      '       g   Q h\(        P0                  ! VP8                  P@                  VP8                  P@                  RR	7       R# \        VP                  \B        4      '       d   VP                  PD                  R8X  d   \6        P<                  ! VP8                  PF                  VP8                  PF                  4      '       g   Q h\(        P0                  ! VP8                  PF                  VP8                  PF                  RR	7       R# \        VP                  \B        4      '       dQ   VP                  PD                  R8X  d6   \(        P<                  ! VP8                  VP8                  4      '       g   Q hR# \I        VP                  4      hV! VP                  3RR
/VB p\(        P0                  ! VP                  VP                  RR	7       R# )r$   zaRangeIndex cannot be initialized from data, MultiIndex and CategoricalIndex are tested separatelyr   r[   TUTCNordinalssame)
check_sameFpythonpyarrow)booleanrs    )%r8   r   r$   r   r   r
   r9   r:   r   rS   inferred_typer>   valuesr   tz_localize
tz_converttzr   r   
_with_freqr\   r]   from_ordinalsasi8assert_numpy_array_equalr   r   nprw   r   shares_memoryrh   _maskr   storage_ndarrayrD   )r.   indexinit_kwargs
index_typer_   s   &&   r0   test_ensure_copied_data TestBase.test_ensure_copied_data   sR    e[))"'**K
J8HIJJKKH [[F"u':':>S'S#(;;K %[
ELLCtC{Cekk?33''.99%((CFem^<==$$T*E
e,e[))--QuzzQ[QF''

FKKFS}--%[E!*U[["((*K*KH5HKHF!!&0%--99''(;(;V^^=Q=QRRRR++MM'')=)=& ''(;(;V^^=Q=QRRRR++MM'')=)=& 5;;449L9LPX9X''(>(>@W@WXXXX++MM**FNN,C,CPV 5;;44KK''94''FFFF)%++66H5HKHF''fmmPVWr3   c                	    VP                   P                  4        VP                  4       pVP                  '       d   V^ 8X  g   Q hR# VP	                  V^ ,          4       VP                  4       pVP                  RR7      p\        V\        \        34      '       gF   \        V4      \        J d+   \        VP                  \        P                  4      '       d	   W28  g   Q hVP                  R8X  d   WC8  g   Q hR# R# )r   NTdeeprS   )_engineclear_mappingmemory_usageemptyget_locr8   r   r   r>   r   r   r   r   )r.   r   r_   result2result3s   &&   r0   test_memory_usageTestBase.test_memory_usage6  s    ##%##%;;;Q;; 	eAh$$&$$$$/
 %*m!<==K5 EKK)J)J###(*$$$ +r3   c                	   VP                   P                  4        R VP                   9  g   Q hVP                  4       pR VP                   9  g   Q hVP                  pR VP                   9   g   Q hVP                  4       pWB8X  g   Q h\	        V4      ^ 8X  d   V^ 8X  g   Q hV^ 8X  g   Q hR# V^ 8  g   Q hV^ 8  g   Q hR# )r   N)_cacheclearr   r   len)r.   r   res_without_engine_res_with_engines   &&   r0   'test_memory_usage_doesnt_trigger_engine0TestBase.test_memory_usage_doesnt_trigger_engineN  s    ,,,"//1,,, MMELL(((,,. 444u:?%***"a'''%)))"Q&&&r3   c                	"   \        V\        4      '       d-   \        P                  ! \	        V 4      P
                   R 24       VP                  4       p\        P                  ! V4      P                  4       p\        P                  ! W#RR7       R# )z separately testedF)check_dtypeN)r8   r
   r9   r:   r>   rC   argsortr   arrayr\   r   )r.   r   r_   r^   s   &&  r0   test_argsortTestBase.test_argsortf  s`    e-..KK4:..//ABC88E?**,
##F%Hr3   c                	   \         P                  ! V4      pVP                  4       p\        P                  ! W#4       \         P                  ! VR R7      pVP                  R R7      p\        P                  ! W#4       \	        V\
        \        34      '       d   Rp\        P                  ! \        VR7      ;_uu_ 4        \         P                  ! V^R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        \         P                  ! VRR7       RRR4       R# R#   + '       g   i     L[; i  + '       g   i     R# ; i)		mergesort)ru   %the 'axis' parameter is not supportedr6   axisNz&the 'order' parameter is not supported)order)ab)
r   r   r\   r   r8   r
   r   r9   r<   
ValueError)r.   r   r_   r^   r?   s   &&   r0   test_numpy_argsortTestBase.test_numpy_argsortn  s    E"==?
##F5E4==k=2
##F5 e.
;<<9Cz55

5q) 6 ;Cz55

5
3 65 =55 655s   ?D+D>+D;	>E	c                	   ^pVP                  4       pVP                  pV! VP                  P                  V4      VP                  R7      p\
        P                  ! VP                  V4      V4       Tp\        P                  ! \        V4      4      pV! VP                  P                  V4      VP                  R7      p\
        P                  ! VP                  V4      V4       R# )   rK   N)
r[   _constructorr   r   rL   r\   r]   r   aranger   )r.   r1   reprG   new_index_clsr^   s   &&    r0   test_repeatTestBase.test_repeat  s    !(( !2!23!7chhG
cjjox8iiC! !2!23!7chhG
cjjox8r3   c                	<   ^pTpVP                  V4      p\        P                  ! \        P                   ! W24      V4       Rp\        P
                  ! \        VR7      ;_uu_ 4        \        P                   ! W2^ R7       RRR4       R#   + '       g   i     R# ; i)r   r   r6   r   N)r   r\   r]   r   r9   r<   r   )r.   r1   r   rG   r^   r?   s   &&    r0   test_numpy_repeatTestBase.test_numpy_repeat  se    ::c?
bii18<5]]:S11IIcQ' 2111s   'B

B	c                	   \        V\        \        34      '       g   \        VP                  4      '       d   \
        P                  ! R 4       TpTp\        V\        \        34      '       d   VP                  R4      pR.\        V4      ,          pVP                  V! V4      4      pTp\        P                  ! Wg4       R.R.\        VR,          4      ,          ,           p\        VP                  .VR,          P!                  4       OVP                  R7      pVP                  V! V4      4      p\        P                  ! Wg4       R# )rc   NTF   NNr   )r8   r   r   r   r   r9   r:   r   r   r   r   wherer\   r]   r   	_na_valuetolist)r.   listlike_boxr1   klassrG   condr_   r^   s   &&&     r0   
test_whereTestBase.test_where  s    l]K$@AAEUF
 F
 KK+,cM>:;;..&CvC 5;'
f/w$#c"g,..#--;#b'..*:;399M5;'
f/r3   c                	    VR ,          p\        V4      '       g   \        P                  ! R4       VP                  ^ V^ ,          4      pVR,          P	                  V4      '       g   Q hR# ):r      NNot applicable for empty index:r   r   NN)r   r9   r:   insertequals)r.   r   trimmedr_   s   &&  r0   test_insert_baseTestBase.test_insert_base  sP    *5zzKK8958,Sz  ((((r3   c                	R   \        V4      ^ 8  d   \        pM\        p\        V4      ^ 8X  d   RpMRpV'       dG   \        VP                  4      R9   d   RpM)VP                  R8X  d   \        V4      ^ 8X  d	   Rp\        p\
        P                  ! W4R7      ;_uu_ 4        VP                  RR4       RRR4       R	P                  R
R.4      p\
        P                  ! \        VR7      ;_uu_ 4        VP                  \        V4      ^,           ^4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        VP                  \        V4      ) ^,
          ^4       RRR4       R#   + '       g   i     L; i  + '       g   i     Lu; i  + '       g   i     R# ; i)r   z5index (0|0.5) is out of bounds for axis 0 with size 0zBslice indices must be integers or None or have an __index__ methodzloc must be an integer betweenrS   r6   g      ?rQ   Nr5   z5index -?\d+ is out of bounds for axis 0 with size \d+>   r   rs   category)	r   r=   
IndexErrorr   r   r9   r<   r   r;   )r.   r   using_infer_stringerrr?   s   &&&  r0   test_insert_out_of_bounds"TestBase.test_insert_out_of_bounds  s$    u:>CCu:?ICVC5;;#@@6(SZ1_6]]3**LLe$ + hhH0
 ]]:S11LLUa+ 2 ]]:S11LL#e*q!, 21 +* 21 211s$    E/2#F$F/E?	F	F&	c                	   \        V4      '       g   \        P                  ! R 4       \        V\        4      '       d-   \        P                  ! \        V 4      P                   R24       VR,          pVP                  ^ 4      pVP                  V4      '       g   Q hVP                  VP                  8X  g   Q hVRR pVP                  R4      pVP                  V4      '       g   Q hVP                  VP                  8X  g   Q h\        V4      pRV RV 2p\        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       R#   + '       g   i     R# ; i)r    tested elsewherer   Nzindex z' is out of bounds for axis 0 with size r6   )r   r9   r:   r8   r   r>   rC   deleter   rL   r<   r   )r.   r   r^   r_   lengthr?   s   &&    r0   test_delete_baseTestBase.test_delete_base  s   5zzKK89eZ((KK4:..//@AB9a}}X&&&&{{hmm+++":b!}}X&&&&{{hmm+++UvhEfXN]]:S11LL  2111s   =EE*	c                	   \        V\        4      '       d-   \        P                  ! \	        V4      P
                   R 24       \	        V4      \        J ;'       d*    \        VP                  \        P                  4      '       * pVP                  V4      '       g   Q hVP                  VP                  4       4      '       g   Q hV'       g-   VP                  VP                  \        4      4      '       g   Q hVP                  \        V4      4      '       d   Q hVP                  \        P                  ! V4      4      '       d   Q h\        V\        4      '       gL   V'       gD   \        V\        R7      pVP                  V4      '       g   Q hVP                  V4      '       g   Q hVP                   ^8X  d%   VP                  \#        V4      4      '       d   Q hR# R# )r   r   N)r8   r   r9   r:   r>   rC   r   r   r   r   r[   astyperS   listr   r   nlevelsr   )r.   r   	is_ea_idxsame_valuess   &&  r0   test_equalsTestBase.test_equals  sS   e]++KK4;//00ABCK5(RREKK1R-R	||E""""||EJJL))))<<V 45555<<U,,,,<<0000 %,,YV4K<<,,,,%%e,,,,==A||F5M22222 r3   c                		   Tp\        V4      pV^ R	 pV^ R	 P                  VR
R	 4      pVR,          pRp\        P                  ! \        VR7      ;_uu_ 4        W$8H   RRR4       \
        P                  ! R.V,          4      p\
        P                  ! R.V^,
          ,          R.,           4      p	\        P                  ! W"8H  V4       \        P                  ! W%8H  V	4       \
        P                  ! V4      p
\
        P                  ! V^ R	 4      p\
        P                  ! V^ R	 P                  VR
R	 4      4      p\
        P                  ! VR,          4      p\        P                  ! \        VR7      ;_uu_ 4        W+8H   RRR4       \        P                  ! W*8H  V4       \        P                  ! W,8H  V	4       \        V
4      p\        V4      p\        V4      p\        V4      p\        P                  ! \        VR7      ;_uu_ 4        W/8H   RRR4       \        P                  ! W.8H  \        V4      4       \        P                  ! VV8H  \        V	4      4       \        P                  ! \        RR7      ;_uu_ 4        W&8H   RRR4       \        P                  ! \        RR7      ;_uu_ 4        VV8H   RRR4       \        P                  ! \        RR7      ;_uu_ 4        W-8H   RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        VV8H   RRR4       \        P                  ! \        RR7      ;_uu_ 4        W8H   RRR4       \        V\        4      '       g   \
        P                  ! R.\        V4      ^,
          ,          RR.,           4      pVR
,          p\        P                  ! VV8H  V4       \        P                  ! VV8H  \        V4      4       R# R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELq; i  + '       g   i     ELQ; i  + '       g   i     EL4; i)r   :r   r   Nz)Lengths must match|could not be broadcastr6   NTFzLengths must matchz3Can only compare identically-labeled Series objectsr   )r   appendr9   r<   r   r   r   r\   r   r   assert_series_equalr8   r   )r.   r1   index_anindex_bindex_cindex_dr?   	expected1	expected2array_aarray_barray_carray_dseries_aseries_bseries_cseries_d	expected3items   &&                  r0   test_equals_opTestBase.test_equals_op  s;   L!B-!B-&&wr"~6#,9]]:S11 2HHdVaZ(	HHdVq1u-78	
##G$6	B
##G$6	B ((7#((71R=)((71R=//2?@((73<(]]:S11 2
##G$6	B
##G$6	B '?'?'?'?]]:S11 2 	w2F94EF
w(2F94EF ]]:-ABB C]]:-ABBx C]]:-ABB CC]]:S11  2]]:-ABB C ':..%CL1,<!=u!MNI2;D''4C""8t#3VI5FG /[ 211 211 211 CBBBBBBBB 211BBBs`   O/>PPP+4P?&QQ'Q;/P 	P	P(	+P<	?Q	Q$	'Q8	;R	c                	   \        V4      ^ 8X  d   \        P                  ! R4       R# VP                  \        8X  d&   \        P                  ! VP                   R24       R# \        V\        4      '       dA   \        VP                  4      '       d&   \        P                  ! RVP                   24       R# \        V\        4      '       d\   VP                  RR7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  V^ ,          4       RRR4       R# VP                  RR7      pVP                  V^ ,          4      p\        P                  ! WB4       WBJg   Q hR	p\        P                  ! \        VR7      ;_uu_ 4        VP                  V^ ,          .4       RRR4       VP                  RR7      pVP                   p\"        P$                  V^&   \'        V4      ! V4      p\"        P(                  ! R
.\        V4      ,          \        R7      pRV^&   \        P*                  ! VP,                  V4       VP.                  RJ g   Q hR#   + '       g   i     R# ; i  + '       g   i     L; i)r   zNot relevant for empty indexz cannot hold NAszNot relevant for Index with Tr   z$fillna is not defined for MultiIndexr6   Nz"'value' must be a scalar, passed: Fr   )r   r9   r:   r   boolr8   r   r   r   r[   r<   rD   fillnar\   r]   r=   rw   r   nanr>   r   r   _isnanhasnans)r.   r   rG   r?   r_   r   r^   s   &&     r0   test_fillnaTestBase.test_fillnaO  s   u:?KK67[[D KK5;;-'789u%%*:5;;*G*GKK6u{{mDEz****$*'C8C2#>>

3q6" ?> **$*'CZZA'F!!&.$$$6Cy44

CF8$ 5 **$*'C[[FF1Iu+f%Cxx#c( 2$?HHQK''

H=;;$&&&- ?>> 54s   I"I6"I3	6J	c                	   \        V4      ^ 8X  dB   \        P                  ! VP                  4       \        P
                  ! . \        R7      4       R# \        V\        4      '       dR   VP                  4       pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  4        RRR4       R# VP                  '       g   \        P                  ! VP                  4       \        P                  ! \        V4      \        R7      4       \        P                  ! VP                  4       \        P                   ! \        V4      \        R7      4       R# \        V4      p\        P                  ! VP                  4       V4       \        P                  ! VP                  4       V( 4       R#   + '       g   i     R# ; i)r   r   z"isna is not defined for MultiIndexr6   N)r   r\   r   r   r   r   r  r8   r   r[   r9   r<   rD   r  zerosnotnaones)r.   r   rG   r?   r_   s   &&   r0   
test_nullsTestBase.test_nullsr  s    u:?''

bhhr6NOz****,C6C2#>>
 ?>''

bhhs5zQU6VW''rwws5zQU7VW%[F''

f=''w? ?>>s   F55G	c                	h    TpVP                   '       d   Q hVR ,          P                   '       g   Q hR# )Nr   NN)r   rM   s   && r0   
test_emptyTestBase.test_empty  s'    999}2w}}}}r3   c                	    TpVP                   '       dJ   VP                  W1R 7      pTpVR8X  d   \        P                  ! V4      p\        P
                  ! WE4       R# R# ))howouterN)	is_uniquer;   algos	safe_sortr\   r]   )r.   	join_typer1   rG   joinedr^   s   &&&   r0   test_join_self_uniqueTestBase.test_join_self_unique  sN    ===XXcX1F#HG# ??84!!&3 r3   c                	    \        V\        \        34      '       d   \        P                  ! R 4       TpVP                  R 4      p\        P                  ! W2RR7       R# )rc   c                    V # r*   r   )xs   &r0   <lambda>#TestBase.test_map.<locals>.<lambda>  s    1r3   equivexactN)r8   r   r   r9   r:   mapr\   r]   )r.   r1   rG   r_   s   &&  r0   test_mapTestBase.test_map  sD    l^[$ABBKK+,%
f9r3   mapperc                	L    \        W4       UUu/ uF  w  r#W2bK	  	  upp# u uppi r*   )zip)r   r   eis   &&  r0   r5  TestBase.<lambda>  s!    C4F"G4FDA144F"G"Gs    c                	    \        W4      # r*   )r   )r   r   s   &&r0   r5  rB    s	    &"7r3   c                	   Tp\        V\        \        \        34      '       d   \        P
                  ! R 4       V! VP                  V4      pVP                  V4      p\        P                  ! WdRR7       RpVP                  P                  R8X  d   VP                  p\        \        P                  .\        V4      ,          VR7      pVP                  V! W4      4      p\        P                  ! Wh4       R# )rc   r7  r8  Nfr   )r8   r   r   r   r9   r:   r   r:  r\   r]   r   ru   r   r   r  r   )	r.   r=  r1   r/   rG   identityr_   r   r^   s	   &&&&     r0   test_map_dictlikeTestBase.test_map_dictlike  s     cM>;GHHKK+,#**c*"
f9 99>>S IIE"&&CH,E:./
f/r3   c                	
   \        V\        4      '       d   \        P                  ! R 4       TpVP	                  \
        4      p\        V Uu. uF  p\        V4      NK  	  up4      p\        P                  ! W54       R# u upi )zSee test_map.pyN)	r8   r
   r9   r:   r:  r   r   r\   r]   )r.   r1   rG   r_   r4  r^   s   &&    r0   test_map_strTestBase.test_map_str  s_    l$455KK)*#.#Q#a&#./
f/ /s   B r[   TFrL   NrQ   orderedc                	   TpV'       d   VP                  V4      p\        VR 7      pVP                  WaR7      p\        WRVR7      p\        P
                  ! WxRR7       \        VP                  4       P                  4       RR V4      pRp	\        P                  ! \        V	R7      ;_uu_ 4        VP                  WaR7      pRRR4       \        P                  ! \        V	R7      ;_uu_ 4        \        WRVR7      pRRR4       \        P
                  ! WxRR7       VR	J d:   VP                  R
VR7      p\        WRR7      p\        P
                  ! WxRR7       R# R#   + '       g   i     L; i  + '       g   i     L|; i))rL  )r[   )rL   rL  Tr8  Nz=Constructing a Categorical with a dtype and values containingr6   )rL   r   Fr   rK   r   )
renamer	   r   r
   r\   r]   uniquer   assert_produces_warningr   )
r.   r[   rL   rL  r1   rG   r   r_   r^   r?   s
   &&&&&     r0   test_astype_categoryTestBase.test_astype_category  s#   
 **T"C !1E-#CGD
fd; !!4!4!6s!;WEM''cBBZZZ1F C''cBB'eDH C
fd;eZZ
Z6F'7H!!&$?	  CBBBs   0E/E1E.	1F	c                	   VP                  4       pVP                  R J g   Q hVR,          pVP                  R J g   Q hVP                  ^ V^ ,          4      pVP                  RJ g   Q hVP                  ^ \        P                  4      pVP                  R J g   Q hVP                  ^ \        P                  4      pVP                  RJ g   Q hR# )Tr%  FN)drop_duplicatesr+  r   r   r  )r.   r1   r   index_empty	index_dupindex_naindex_na_dups   &&     r0   test_is_uniqueTestBase.test_is_unique  s    ,,.$&&& Bi$$,,, LLE!H-	""e+++ <<266*!!T)))  q"&&1%%...r3   c                	    VP                  4       p\        P                  ! V4      pVP                   ?V! 4       e   Q hR # r*   )r[   weakrefrefr   )r.   r1   r   r]  s   &&  r0   test_engine_reference_cycle$TestBase.test_engine_reference_cycle  s6     !!#kk% u}}r3   c                	   \        V\        4      '       d   \        P                  ! R 4       TpRp\        P                  ! \
        \        3VR7      ;_uu_ 4        VR,           RRR4       \        V\        4      '       g{   \        P                  ! \
        \        3VR7      ;_uu_ 4        VR,           RRR4       \        P                  ! \
        \        3VR7      ;_uu_ 4        VR,           RRR4       R# Rp\        P                  ! \        VR7      ;_uu_ 4        VR,           RRR4       \        P                  ! \        VR7      ;_uu_ 4        VR,           RRR4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i  + '       g   i     L; i  + '       g   i     R# ; i)zTested elsewherez(Multi-dimensional indexing|too many|onlyr6   NTFzonly integers, slices):NNNN)r8   r   r9   r:   r<   r   r   r   rF   s   &&  r0   test_getitem_2d_deprecated#TestBase.test_getitem_2d_deprecated  s   lM22KK*+8]]J
33??L @ #z**
J7sCCD	 D
J7sCCE
 DC *Cz55D	 6z55E
 65 @??
 DCCCC 65555s<   
E--
F)
F#
F(
F;-E>	F	F%	(F8	;G	c                	    TpVP                  V^ ,          4       VP                  4       pVP                  VP                  J g   Q hR# r   N)r   r[   r   )r.   r1   rG   r[   s   &&  r0   test_copy_shares_cacheTestBase.test_copy_shares_cache  s8    CFxxz{{cjj(((r3   c                	&   TpVP                  V^ ,          4       VP                  4       pVP                  VP                  J g   Q hVP                  VP                  4      pVP                  VP                  Jg   Q hVP                  / 8X  g   Q hR# rd  )r   _viewr   _shallow_copyrh   )r.   r1   rG   shallow_copys   &&  r0   test_shallow_copy_shares_cache'TestBase.test_shallow_copy_shares_cache  sz    CFyy{""cjj000((3""#**444""b(((r3   c                	R   VR ,          p\         P                  ! ^^\         P                  ^^.4      p\        P                  ! VP                  V4      RV^ ^.,          RV^^.,          /4       \        \        R^^4      \        R^^4      \        P                  \        R^^4      \        R^^4      .RR7      P                  p\        R4      \        R4      .pV^ ,          V^ ^.,          V^,          V^^.,          /p\        P                  ! VP                  V4      V4       R# )	:N   Ng      ?g       @i  r   )r   z
2011-11-01z
2011-12-01N)r   r   r  r\   assert_dict_equalgroupbyr   r   r   NaTr   r   )r.   r1   rG   
to_groupbyex_keysr^   s   &&    r0   test_index_groupbyTestBase.test_index_groupby(  s
   2XXq!RVVQ23

KK
#c31v;S!Q[%I	
 #r1%r1%r1%r1% 	
 & 	 \*Il,CDAJQFWQZaVE
S[[4h?r3   c                	r   Tp\        V4      pVP                  V4      pVP                  VP                  8X  g   Q h\        P                  ! VR V VRRR7       \        P                  ! WCR  VRRR7       VP                  \        \        V4      4      ^,          4      p\        P                  ! WERR7       R # )NFT)r9  check_exact)rw  )r   r  r   r\   r]   taker   range)r.   r1   r   Nr_   alts   &&    r0   test_append_preserves_dtype$TestBase.test_append_preserves_dtype>  s    Je$||u{{***
fRaj%u$O
fRj%u$OjjeAh!+,
ft<r3   c                	r   TpVP                   P                  R9   dj   V( p\        VP                  ( VP                  R7      p\
        P                  ! WE4       \        V4      ( p\
        P                  ! V\        V4      4       R# VP                   P                  R8X  d   RpMRp\        P                  ! \        VR7      ;_uu_ 4        V(  RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        V4      (  RRR4       R#   + '       g   i     LK; i  + '       g   i     R# ; i)rA  rK   rE  z0ufunc 'invert' not supported for the input typesz8bad operand|__invert__ is not supported for string dtyper6   N)rA  u)r   ru   r   r   rL   r\   r]   r   r  r9   r<   r=   )r.   r1   r   rG   resr^   res2r?   s   &&&     r0   test_invTestBase.test_invL  s    99>>Z'$Ccjj[sxx8H!!#0 3K<D""4)9:yy~~$HPy44 5 y44 54	 54 544s   D;D%D"	%D6	r   )r   r   r   r   r   c)z0 days 01:00:00z1 days 01:00:00z2 days 01:00:00z3 days 01:00:00z4 days 01:00:00)z
2013-01-01z
2013-01-02z
2013-01-03z
2013-01-04z
2013-01-05)CrC   
__module____qualname____firstlineno__r9   fixturer   r   r   r   float64float32uint64ry  int64int32int16int8r   r   r   r   r   from_breaksr1   r@   rH   rN   r`   rp   rz   r   r   markfilterwarningsr   r   r   r   r   r   r   r   r   r   r   r   r  r  r"  r&  r0  r;  parametrizerG  rJ  rQ  rY  arm_slowr^  ra  re  rk  rt  r|  r  __static_attributes__r   r3   r0   r   r   '   s   ^^QRa0"))ARZZ01"))ARZZ01"))ARYY/0%2q/2%2q/2%2q/2%2q/1$w- *+QS9 (
 V&
 %%eBi@9
@A@!($2h-^ 4) [[ VW<X X<X|%0'0I42
9(0,)!-F!. [[ VW3 X32<H|!'F@$4: [[G7	
 [[ VW0 X0(0 [[VdE]3[[VdE]3[[Yu6@ 7 4 4@6/* [[ ,)
)@,=r3   r   c                     ] tR tRt]P
                  ! ]! ^ ^^R7      ]! ]P                  ! ^]P                  R7      4      ]! ]P                  ! ^]P                  R7      4      ]! ]P                  ! ^]P                  R7      4      ]! ]! ^ ^^4      ]P                  R7      ]! ]! ^ ^^4      ]P                  R7      ]! ]! ^ ^^4      ]P                   R7      ]! ]! ^ ^^4      ]P"                  R7      .R7      R 4       tR tR tR tR	 tR
 tR t]P2                  P5                  R]P6                  ]P8                  .4      R 4       tR tRtR# )TestNumericBaseid  r   r   r'   c                	    VP                   # r*   r+   r-   s   &&r0   r1   TestNumericBase.simple_indexe  s     }}r3   c                	D   \        V\        4      '       d   \        P                  ! R 4       \	        V4      pVP
                  p\        ^^.VR7      pV! V4      p\        P                  ! ^^.VP
                  R7      p\        P                  ! VP                  V4       R# )rc   r   N)r8   r   r9   r:   r>   r   r   r   r   r\   r   rh   )r.   r1   	index_clsr   rG   r_   r^   s   &&     r0   test_constructor_unwraps_index.TestNumericBase.test_constructor_unwraps_indext  sv    lJ//KK+,&	""QF%(388QF#))4
##FLL(;r3   c                	J    TpV^ ,          pVP                  V4      RJ g   Q hR# )r   FN)$_can_hold_identifiers_and_holds_name)r.   r1   rG   keys   &&  r0   test_can_hold_identifiers)TestNumericBase.test_can_hold_identifiers  s)    !f77<EEEr3   c                	   \        V\        4      '       d   \        P                  ! R 4       \	        V4      pVP
                  pV! . VRR7      pVP                  4       pVP                  R8X  g   Q hVP                  V4      p\        P                  ! WB! VRR7      RR7       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       R#   + '       g   i     R# ; i)	rc   Foo)r   rL   rK   Tr8  z[Cannot change data-type for array of references.|Cannot change data-type for object array.|r6   N)r8   r   r9   r:   r>   r   viewrL   r\   r]   r<   r=   )r.   r1   r  r   rG   idx_viewr?   s   &&     r0   	test_viewTestNumericBase.test_view  s    lJ//KK+,&	""%e488:}}%%%88E?
c9XE#B$O9 	 ]]9C00HHY 1000s   	C%%C6	c                	    TpVP                  ^ V^ ,          4      p\        V^ ,          .\        V4      OVP                  R7      p\        P
                  ! W4RR7       R# )r   r   Tr8  N)r   r   r   r   r\   r]   )r.   r1   r   r_   r^   s   &&   r0   test_insert_non_na"TestNumericBase.test_insert_non_na  sM     aq*%(1T%[1E
fd;r3   c                	   TpTpV\         P                  J d<   \        V^ ,          \         P                  .\        VR,          4      O\        R7      pMe\        V^ ,          \
        P                  .\        VR,          4      O4      pVP                  P                  R8X  d   \        WSP                  R7      pVP                  ^V4      p\        P                  ! WeRR7       R# )r   r   r   rE  Tr8  N)r   rq  r   r   rS   r   r  r   ru   r   r\   r]   )r.   nulls_fixturer1   r   na_valr^   r_   s   &&&    r0   test_insert_naTestNumericBase.test_insert_na  s    RVVeAhAeBiAPHeAhAeBiABH{{3& =a(
fd;r3   c                	   \        V4      pV\        J d   \        ^4      pMV! \        P                  ! ^RR7      4      p\        P                  ! ^RR7      R,          p\	        V\        P
                  R7      pVR,          p\        P                  ! We4       RV,          p\        P                  ! We4       \	        V\        P
                  R7      p\        P                  ! ^RR7      pWg,
          p\        P                  ! W4       \	        V) \        P
                  R7      p\        P                  ! ^RR7      pWv,
          p\        P                  ! W4       R# )rn  r  r   g	@r  N)	r>   r   r   r   r   r  r\   r]   r  )	r.   r1   r  rG   arrr^   fidxr   r_   s	   &&       r0   $test_arithmetic_explicit_conversions4TestNumericBase.test_arithmetic_explicit_conversions  s     &	
"Q-CBIIaw78C ii)C/BJJ/Sy
d-Sy
d- BJJ/HHQi(
f/#RZZ0HHQi(
f/r3   complex_dtypec                	t    VP                  V4      p\        V4      \        J d   VP                  V8X  g   Q hR # r*   )r   r>   r   r   )r.   r  r1   r_   s   &&& r0   test_astype_to_complex&TestNumericBase.test_astype_to_complex  s2    $$]3F|u$)FFF)Fr3   c                	   \        V\        4      '       d   \        P                  ! R 4       \	        V4      ! . ROVP
                  R7      p\	        V4      ! . ROVP
                  R7      p\        P                  ! W#4       R# )z.casting of strings not relevant for RangeIndexr   N)012)r   r   r   )r8   r   r9   r:   r>   r   r\   r]   )r.   r1   r_   r^   s   &&  r0   test_cast_string TestNumericBase.test_cast_string  sX    lJ//KKHIl#O<;M;MN%i|7I7IJ
f/r3   r   N) rC   r  r  r  r9   r  r   r   r   r   r  r  r  ry  r  r  r  r  r1   r  r  r  r  r  r  r  r  	complex64
complex128r  r  r  r   r3   r0   r  r  d  s$   ^^QRa0"))ARZZ01"))ARZZ01"))ARYY/0%2q/2%2q/2%2q/2%2q/1	
	<F
 *<< 08 [[_r||R]].KLG MG
0r3   r  )*
__future__r   r   r\  numpyr   r9   pandas._libs.tslibsr   pandas.errorsr   pandas.core.dtypes.commonr   r   pandas.core.dtypes.dtypesr	   pandasr   r
   r   r   r   r   r   r   r   r   r   r   r   r   pandas._testing_testingr\   pandas.core.algorithmscore
algorithmsr,  pandas.core.arraysr   r   r  r   r3   r0   <module>r     sb    "     ) ( 7      & & .z zzv0 v0r3   