+
    xȇiָ                         ^ RI H t Ht ^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
Ht ^ RI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 ^ RIHt ^ RIHt  ! R	 R
4      t ! R R4      t R# )    )datetime	timedeltaN)dateutil_gettz)IS64is_platform_windows)np_version_gt2)Pandas4Warning)CategoricalCategoricalIndex	DataFrameIndex
MultiIndexSeries
date_rangeisna)CategoricalDtypec                      a  ] tR t^!t o R tR tR tR t]P                  P                  R. R	O. R
O.4      R 4       tRtV tR# )TestReindexSetIndexc                x   \        \        P                  P                  ^4      P                  ^4      4      p\	        R^RRR7      p\	        R^RRR7      pVP                  V4      p\        P                  ! VP                  V4       VP                  V4      p\        P                  ! VP                  V4       R# )	   z
2011/01/01ME
US/Easternperiodsfreqtz2013YEz
Asia/TokyoN)
r   nprandomdefault_rngr   	set_indextmassert_index_equalindexreindex)selfdfidx1idx2s   &   w/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/methods/test_reindex.py(test_dti_set_index_reindex_datetimeindex<TestReindexSetIndex.test_dti_set_index_reindex_datetimeindex$   s    ryy,,Q/66q9:,N&!$<H\\$
bhh-ZZ
bhh-    c           	        \        \        R ^
^4      \        R ^
^^4      RRR7      p\        \        P                  P                  ^4      P                  R4      R.VR7      p\        \        R ^
^4      \        R ^
^^4      RRR7      pVP                  V4      pVP                  P                  VP                  8X  g   Q hR# )i  hr   )r   r   acolumnsr%   N)      )
r   r   r   r   r    r!   standard_normalr"   r%   r   )r'   r%   r(   	new_indexresults   &    r+   'test_dti_set_index_reindex_freq_with_tz;TestReindexSetIndex.test_dti_set_index_reindex_freq_with_tz/   s    T2q!8D"a#<3<
 II!!!$44W=E

 T2q!8D"a#<3<
	 i(||  EJJ...r.   c                    \        R \        ^
4      /4      p\        P                  ! VP                  ^4      pW!R&   VP                  R4      pVP                  4       pR# )ABN)r   rangepdcutr<   r"   reset_index)r'   r(   sers   &  r+   "test_set_reset_index_intervalindex6TestReindexSetIndex.test_set_reset_index_intervalindex@   sI    U2Y'(ffRTT1o3\\#^^r.   c           
     ,   \        . ROR7      P                  R RR\        P                  R\        P                  /4      pVP                  R .4      p. VR&   VP                  4       p\        . R	O\        ^ 4      R7      P                  R RR\        P                  R\        P                  R\        P                  /4      p\        P                  ! W44       VP                  R R.4      p. VR&   VP                  4       p\        P                  ! W44       R# )
r1   bcr3   zdatetime64[ns]dr2   Nr1   rF   rG   )r1   rF   rG   rI   )
r   astyper   int64float64r"   rA   r>   r#   assert_frame_equal)r'   r(   df1r8   expecteddf2s   &     r+   test_setitem_reset_index_dtypes3TestReindexSetIndex.test_setitem_reset_index_dtypesH   s    /66"C3

C
 llC5!C"%9qJQQ"C3

CT
 	f/llC:&C"
f/r.   z timezone, year, month, day, hourc           
        \        V4      p\        P                  ! VVVV^ ^ VR7      p\        P                  ! VVVV^ ^VR7      p\        RWx.RRR./4      P	                  R4      P                  RR.4      p	\        RRR.R\        P                  \        P                  ./4      P	                  R4      p
V
P                  V	P                  P                  4      p
\        P                  ! V	V
4       R# )	r   )yearmonthdayhourminutefoldtzinfor%   valsr1   rF   12N)gettzr?   	Timestampr   r"   r&   r   nanrK   r\   dtyper#   rN   )r'   timezonerU   rV   rW   rX   test_timezonetransition_1transition_2r(   exps   &&&&&&     r+    test_reindex_timestamp_with_fold4TestReindexSetIndex.test_reindex_timestamp_with_foldZ   s     h|| 
 || 
 w <fsCjQRYwWc3Z  	
 3*frvvrvv6FGHRR
 jj'
	
r.    N)zAmerica/Chicagoi        r5   )zAmerica/Santiagoi     rl      )__name__
__module____qualname____firstlineno__r,   r9   rC   rR   pytestmarkparametrizerh   __static_attributes____classdictcell____classdict__s   @r+   r   r   !   sH     	./"0$ [[*	,.RS!
	!
r.   r   c                   0  a  ] tR t^t o ]P
                  P                  ]'       * ;'       g    ]! 4       ;'       d    ]	'       * RR7      R 4       t
R tR t]P
                  P                  RR. RbO3R]P                  ^ ^^.3R	. RcO3.4      R
 4       tR tR tR tR t]P
                  P                  RR. RdO3RRRR]P                  .3.4      R 4       tR t]P
                  P                  R. ReOR.. RfOR.R.R.. RgOR.. RhOR.RR.R.RR.R.RR.R.. RiOR.RR.R.. RjOR..4      R 4       t]P
                  P                  R . RkO4      R! 4       t]P
                  P                  R". RlO. RmO.. RnO. RoO.R$R%.. RpO.R%R#.. RqO..4      R& 4       t]P
                  P                  R']! R(4      . RrOR.]! R)4      . RsOR.]! R*4      . RtOR.]! R+4      . RuOR.]! R,4      . RvOR.]! R-4      . RwOR.]! R.4      . RxOR.]! R/4      . R..4      R0 4       tR1 tR2 tR3 tR4 tR5 t R6 t!R7 t"R8 t#R9 t$R: t%R; t&R< t'R= t(R> t)R? t*R@ t+RA t,RB t-RC t.RD t/RE t0RF t1RG t2RH t3RI t4RJ t5RK t6RL t7RM t8]P
                  P                  RNRORRP]9! ^	RQ7      /ROR	RP]9! ^	RQ7      /ROR/RORR/.4      RS 4       t:]P
                  P                  RT];]<.4      ]P
                  P                  RU];! . 4      ]<! . 4      ];! RR.4      ]<! RR.4      ];! RR.4      ]<! RR.4      .4      RV 4       4       t=]P
                  P                  RWRXRY.4      RZ 4       t>]P
                  P                  R[];]<.4      ]P
                  P                  R\RR.4      R] 4       4       t?R^ t@R_ tAR` tBRatCV tDRR# )yTestDataFrameSelectReindexzTPasses int32 values to DatetimeArray in make_na_array on windows, 32bit linux builds)reasonc                J   \        ^..4      p\        P                  ! RRR7      P                  R4      pVP	                  ^ ^.^VR7      pVP
                  ^,          \        P                  ! RRR7      8X  g   Q h\        ^ ^.^V./4      pV^,          P                  VP
                  ^,          4      V^&   \        P                  ! W44       VP                  R4      P                  R4      pVP	                  ^ ^.^VR7      pVP
                  ^,          \        P                  ! R4      8X  g   Q h\        ^ ^.^V./4      p\        P                  ! W44       \        P                  ! W"\        P                  ! ^R7      ,           4      pVP	                  ^ ^.^VR7      pVP
                  ^,          \        P                  ! R	R
4      8X  g   Q h\        ^ ^.^V./4      pV^,          P                  VP
                  ^,          4      V^&   \        P                  ! W44       R# )r5   z2023-04-10 17:32z
US/Pacific)r   s)axis
fill_value)unitr   Nsecondszdatetime64[s, US/Pacific]right)r   r?   r`   as_unitr&   dtypesDatetimeTZDtyperK   r#   rN   tz_localize	to_periodPeriodDtypeInterval	TimedeltaIntervalDtype)r'   r(   tsresrP   perintervals   &      r+   test_reindex_tzaware_fill_value:TestDataFrameSelectReindex.test_reindex_tzaware_fill_value   s    u\\,>FFsKjj!QaBj7zz!} 2 2 MMMMa!a"./qk((A7
c,nnT",,S1jj!QaCj8zz!}s 3333a!a#/0
c,;;rQ(?#?@jj!QaHj=zz!} 0 01Lg VVVVa!a(45qk((A7
c,r.   c           	     P   \        R ^RR7      P                  P                  ^^4      p\        VRR.\	        ^4      R7      pVP
                  R,          pVP                  4       pVP                  \	        ^4      . ROVR7      p\        R. VR,          P                  4       OVNR. VR,          P                  4       OVNRV.^,          /\        R7      p\        P                  ! WV4       VP                  \	        ^4      VR	7      p\        P                  ! WVRR.,          4       VP                  \	        ^4      . ROR R7      p\        R. VR,          P                  4       OVNR. VR,          P                  4       OVNRV.^,          /4      p\        P                  ! WV4       R
# )
2016-01-01ns)r   r   r<   r=   r2   Cr%   r3   r   rb   )r%   r   Nr   r   r<   r=   r   )r   valuesreshaper   r>   ilocdater&   tolistobjectr#   rN   )r'   arrr(   r   fvr   rP   s   &      r+   test_reindex_date_fill_value7TestDataFrameSelectReindex.test_reindex_date_fill_value   sw   qt<CCKKAqQsS#JeAh?WWT]WWYjjuQxRjP)BsGNN$)b)30G"S'..2B0GB0GrdUVhW
 	c, jjuQxBj7
cS#J#78 jj(O  
 )BsGNN$)b)30G"S'..2B0GB0GrdUVhW
 	c,r.   c                   \        R R.^,          ^ .^,          ,           ^.^,          ,           R\        \        ^4      4      ^,          R. RO^,          /4      P                  R R.4      p. ROp\        P
                  ! ^ .V.R R.R7      pVP                  V4      p\        R ^ .^,          RVR\        P                  RR\        P                  ./4      P                  R R.4      p\        P                  ! WT4       \        R ^ .^,          RVR. RO/4      P                  R R.4      pVP                  VRR7      p\        P                  ! WV4       VP                  VRR7      p\        P                  ! WV4       \        R ^ .^,          RVR. RO/4      P                  R R.4      pVP                  VR	R7      p\        P                  ! WW4       VP                  VR
R7      p\        P                  ! WW4       R# )r1   rF   rG   r   FnamesbfillmethodbackfillpadffillN)r<   r=   r   DEr   G)      ?       @g      @g333333@)r=   r   r   r   )r<   r   r   r   )r   listr>   r"   r   from_productr&   r   ra   r#   rN   )r'   r(   r7   new_multi_index	reindexedrP   reindexed_with_backfillingreindexed_with_paddings   &       r+   test_reindex_with_multi_index8TestDataFrameSelectReindex.test_reindex_with_multi_index   s   L bTAXa'1#'1T%(^a'81<
 )S#J
 	 )	$11A3	2B3PS*U JJ/	1#'3	3c2660JK

)S#J
 	 	h2 1#'3	30DE

)S#J
 	 &(ZZZ%P"
hC%'ZZ
Z%S"
hC 1#'3	30DE

)S#J
 	 "$OE!J
h?!#OG!L
h?r.   zmethod,expected_valuesnearestr   r   c                    \        R \        \        ^4      4      /4      p\        P                  ! . RO4      p\        R V/VR7      pVP                  WAR7      p\        P                  ! WV4       VP                  WA^R7      p\        P                  ! WV4       VP                  WA. ROR7      p\        P                  ! WV4       VRRR	1,          pVP                  VRRR	1,          VR7      p\        P                  ! Wv4       . R
OpVP                  V,          pVP                  WH,          VR7      p\        P                  ! Wv4       VR8X  d   RM
VR8X  d   RMTp	VRRR	1,          P                  WIR7      p\        P                  ! WV4       R# )xr%   r   r   	toleranceNr   r   gg?g?g      ?)r5   r5   r5   r5   r   )rl   r   r   r5   )	r   r   r>   r   arrayr&   r#   rN   r   )
r'   r   expected_valuesr(   targetrP   actuale2	new_orderswitched_methods
   &&&       r+   test_reindex_methods/TestDataFrameSelectReindex.test_reindex_methods  sK    T%(^,-/0c?36BF2
h/FQ?
h/F\J
h/dd^F4R4L8
b) 	]]9%F-f=
b) z)EVu_zRX 	 DbD!!&!A
h/r.   c                   \        R \        \        ^4      4      /4      p\        P                  ! . RO4      p\        R ^ ^^\        P
                  ./VR7      pVP                  VRRR7      p\        P                  ! W44       \        R ^ \        P
                  ^\        P
                  ./VR7      pVP                  VR. ROR7      p\        P                  ! W44       R# )r   r   r   g?r   Nr   )r   g{Gz?g?g?)	r   r   r>   r   r   ra   r&   r#   rN   )r'   r(   r   rP   r   s   &    r+   $test_reindex_methods_nearest_special?TestDataFrameSelectReindex.test_reindex_methods_nearest_special/  s    T%(^,-/0cAq!RVV#45VDF9D
h/cArvvq"&&#9:&IF9@UV
h/r.   c                    Tp\        R ^VR7      p\        R\        \        ^4      4      /VR7      pVP	                  ^4      pVP                  VR,          RR7      p\        P                  ! WV4       R# )z
2019-01-01)r   r   r   r   :Nrl   Nr   r   N)r   r   r   r>   headr&   r#   rN   )r'   tz_aware_fixturer   idxr(   rP   r   s   &&     r+   test_reindex_nearest_tz2TestDataFrameSelectReindex.test_reindex_nearest_tz;  s_    qR8T%(^,C8771:CGI6
h/r.   c                    \         P                  ! R .4      p\        \         P                  ! R.4      R7      p\        VR7      pVP                  VRR7      p\        P
                  ! WC4       R# )z2016-06-26 14:27:26+00:00z2016-07-04 14:00:59+00:00r   r   r   N)r?   DatetimeIndexr   r&   r#   rN   )r'   dtir(   rP   r8   s   &    r+   #test_reindex_nearest_tz_empty_frame>TestDataFrameSelectReindex.test_reindex_nearest_tz_empty_frameE  sY     ;<=R--/J.KLM3'C	2
f/r.   c                   \        R ^
RR7      p\        R\        P                  P	                  ^4      P                  \        V4      4      RV/4      pVP                  \        ^4      4      p\        P                  ! VR,          P                  \        P                  ! R4      4      '       g   Q h\        V4      R,          pVRR P                  4       '       g   Q hVRR P                  4       '       d   Q hR# )z1/1/2000 00:00:0010sr   r   r<   r=   M8[ns]N)r   r   r   r    r!   r6   lenr&   r>   
issubdtyperb   r   allany)r'   rngr(   r8   masks   &    r+   test_reindex_frame_add_nat5TestDataFrameSelectReindex.test_reindex_frame_add_natM  s    ,buE"))''*::3s8Dc3O
 E"I&}}VC[..0BCCCCF|C BCy}}9==??""?r.   zmethod, exp_valuesr   r   g      ?r   g      @c           
         V! . R
O\        R^RRR7      R7      p\        R^RRR7      pVP                  WR\        P                  ! R4      R7      pV! W5R7      p\        P
                  ! Wg4       R	# )r   z2020-01-01 00:00:00r0   UTCr   r   z2020-01-01 00:01:00z1 hourr   Nr   r5   r   rl   )r   r&   r?   r   r#   assert_equal)r'   frame_or_seriesr   
exp_valuesobjr7   r8   rP   s   &&&&    r+   !test_reindex_frame_tz_ffill_bfill<TestDataFrameSelectReindex.test_reindex_frame_tz_ffill_bfillZ  sd     2ACER
 4aceT	YhAWX":?
)r.   c                $   . RO. RO. RO. RO.p. RO. RO. RO. RO. RO\         P                  \         P                  \         P                  ..p\        V4      pVP                  . ROR^R7      p\        V4      p\        P
                  ! WE4       R# )	r<   r   )r   limitN)r<   r<   r<   )r=   r=   r=   )r   r   r   )r   r   r   )r   r5   r   rl   rm      )r   ra   r   r&   r#   rN   )r'   dataexp_datar(   r8   rP   s   &     r+   test_reindex_limit-TestDataFrameSelectReindex.test_reindex_limiti  st    /?SVVRVVRVV$
 t_.waHX&
f/r.   zidx, check_index_typer   r=   r<   Tr   r   Fc                  a \        R \        R
4      R\        R4      RRR1,          R. RO^,          R\        P                  P	                  ^4      P                  ^ R^	4      /4      o. ROpV3R lp\        P                  ! \        \        WA4      4      4      pSP                  V4      P                  VR R7      pSP                  V,          P                  V4      p\        P                  ! WgVR	7       R# )jimjoe	abcdeabcdNjoliejoline  c                 n   < \         P                  ! SR ,          V 8H  P                  4       4      ^ ,          # r   r   nonzeroto_numpyvalr(   s   &r+   fKTestDataFrameSelectReindex.test_reindex_level_verify_first_level.<locals>.f  )    ::r%yC/99;<Q??r.   levelcheck_index_type	BBBBAACCCr   
         r   r   r   )r   r   r   r    r!   integersconcatenatemapr"   r&   r   r#   rN   )	r'   r   r  icolr  ileftr   r(   s	   &&&     @r+   %test_reindex_level_verify_first_level@TestDataFrameSelectReindex.test_reindex_level_verify_first_levely  s    $ t78tK(2.)"))//2;;AtQG	
 '	@ NN4A,-||D!))#U);
$$T*
d<LMr.   r   c                  a \        R R.^,          R.^,          ,           R.^,          ,           RR.^,          R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R\        P                  ! R Uu. uF4  p\        P                  P	                  ^4      P                  R	VR
R7      NK6  	  up4      R\        P                  P	                  ^4      P                  ^4      P                  ^4      ^
,          /4      o. ROpV3R lp\        P                  ! \        \        WA4      4      4      pSP                  V4      P                  VR R7      pSP                  V,          P                  V4      p\        P                  ! Wg4       R# u upi )r   midbtmtopr   3rd1st2ndr   r   Freplacer   c                 n   < \         P                  ! SR ,          V 8H  P                  4       4      ^ ,          # r  r  r  s   &r+   r  STestDataFrameSelectReindex.test_reindex_level_verify_first_level_repeats.<locals>.f  r	  r.   r
  Nr   rl   rl   r   rl   r   rl   r   r  )r   r   r  r    r!   choicer6   roundr   r  r"   r&   r   r#   rN   )	r'   r   r   r  r  r  r  r   r(   s	   &&      @r+   -test_reindex_level_verify_first_level_repeatsHTestDataFrameSelectReindex.test_reindex_level_verify_first_level_repeats  s   * w{eWq[0E7Q;>w{'A+'A+ 'A+ 'A+	
 'A+ 'A+ 'A+  ":!9A 		--a077a7O!9 "))//2BB2FLLQORTT'
. '	@ NN4A,-||D!))#U);
$$T*
d*!s   7:Gzidx, indexerr!  r"  r   c                J   \        R R.^,          R.^,          ,           R.^,          ,           RR.^,          R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R.^,          ,           R\        P                  ! R Uu. uF4  p\        P                  P	                  ^4      P                  R	VR
R7      NK6  	  up4      R\        P                  P	                  ^4      P                  ^4      P                  ^4      ^
,          /4      p. ROpVP                  V4      P                  VRR7      pVP                  V,          P                  V4      p\        P                  ! Wg4       R# u upi )r   r  r  r  r   r   r!  r"  r   r   Fr#  r   r
  Nr'  r  )r   r   r  r    r!   r(  r6   r)  r"   r&   r   r#   rN   )r'   r   indexerr   r(   r  r  r   s   &&&     r+   !test_reindex_level_verify_repeats<TestDataFrameSelectReindex.test_reindex_level_verify_repeats  s|     w{eWq[0E7Q;>w{'A+'A+ 'A+ 'A+	
 'A+ 'A+ 'A+  ":!9A 		--a077a7O!9 "))//2BB2FLLQORTT'
. '||D!))#U); **40
d*s   6:F zidx, indexer, check_index_typeabcdeabcdabcecaedceadbcedwqwqc                   \        R \        R	4      R\        R4      RRR
1,          R. RO^,          R\        P                  P	                  ^4      P                  ^ R^	4      /4      p. ROpVP                  V4      P                  VRR7      pVP                  V,          P                  V4      p\        P                  ! WgVR7       R# )r   r   r   Nr   r   r   r
  r  r  r   r  r  )r   r   r   r    r!   r  r"   r&   r   r#   rN   )r'   r   r-  r  r(   r  r  r   s   &&&&    r+   test_reindex_level_verify4TestDataFrameSelectReindex.test_reindex_level_verify  s     t78tK(2.)"))//2;;AtQG	
 '||D!))#U); **40
d<LMr.   c                   \        R ^RR7      p\        P                  P                  ^4      P	                  R4      p\        W!\        R4      R7      p\        W!. RO,          \        R4      R7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  VP                  RR7       R	R	R	4       \        P                  ! \        VR7      ;_uu_ 4        VP                  VP                  R
R7       R	R	R	4       \        P                  ! \        VR7      ;_uu_ 4        VP                  VP                  RR7       R	R	R	4       \        P                  ! \        VR7      ;_uu_ 4        VP                  VP                  RR7       R	R	R	4       R	#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R	# ; i)z
2013-08-01r=   r   r<   r%   r3   z0index must be monotonic increasing or decreasingmatchr   r   Nr   r   r   )   r5   )rl   rm   r   r   r5   r   )r   r   r    r!   r6   r   r   rs   raises
ValueErrorr&   r%   )r'   drr   r(   df_revmsgs   &     r+   "test_non_monotonic_reindex_methods=TestDataFrameSelectReindex.test_non_monotonic_reindex_methods  s&   ac:yy$$Q'77?ttCy94*<'=tCyQ@]]:S11NN288EN2 2]]:S11NN288GN4 2]]:S11NN288GN4 2]]:S11NN288IN6 21 211111111s0   F"F1,G6GF.	1G	G	G(	c                   \        R ^ ^.R\        P                  ! ^ ^.\        P                  ! R^ 4      R7      /4      pVP	                  ^ ^.4      p\        R R\
        P                  .R\        P                  ! R\
        P                  .\        P                  ! RR4      R7      /^ ^.R7      p\        P                  ! W#4       R# )r<   r=   rL   r           rM   r   N)	r   r?   r   SparseDtyper&   r   ra   r#   rN   r'   r(   r8   rP   s   &   r+   test_reindex_sparse.TestDataFrameSelectReindex.test_reindex_sparse*  s    1a&#rxxAbnnWa6PQR
 QF#c266]RXXsBFFm2>>)S3QR a&
 	f/r.   c                   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVP                  VP                  4      pVP                   F  pW4,          P                  4        F  w  rVWQP                  9   db   \        P                  ! V4      '       d.   \        P                  ! W,          V,          4      '       g   Q hK^  WaV,          V,          8X  g   Q hKv  \        P                  ! V4      '       d   K  Q h	  K  	  VP                  4        F0  w  rG\        P                  ! VP                  VP                  4       K2  	  VP                  \        . 4      4      p\        VP                  4      ^ 8X  g   Q hVP                  VP                  R,          4      p	V	P                   F  pW,          P                  4        F  w  rVWQP                  9   db   \        P                  ! V4      '       d.   \        P                  ! W,          V,          4      '       g   Q hK^  WaV,          V,          8X  g   Q hKv  \        P                  ! V4      '       d   K  Q h	  K  	  V	P                  4        F0  w  rG\        P                  ! VP                  V	P                  4       K2  	  VP                  VP                  4      pVP                  P                  VP                  4      '       g   Q hVP                  . 4      pVP                  '       g   Q h\        VP                  4      \        VP                  4      8X  g   Q hVP                  . 4      pVP                  VP                  4      p\        VP                  4      \        VP                  4      8X  g   Q h\        VP                  4      \        VP                  4      8X  g   Q hVP                  \!        VP                  4      4      pVP                  P#                  R4      p
\        P                  ! VP                  V
4       VP                  4       p\        P$                  ! W4       WJg   Q hR# )r  r   z
2020-01-01r   r   NNr   N)r   r   arangerM   r   r&   r%   r3   itemsisnanr#   r$   r   r   is_emptyr   
_with_freqrN   )r'   float_framedatetime_seriesnewFramecolr   r  series
emptyFramenonContigFramerP   r8   s   &&          r+   test_reindex'TestDataFrameSelectReindex.test_reindex9  sO    IIb

+:lTV3W
 &&'<'<=##C$M//1+++xx}}!xx(8(=>>>>"#&6s&;;;;88C==(= 2 $ $>>+KC!!&,,? , ((r3
:##$))) %,,_-B-B3-GH!))C*/557+++xx}}!xx(8(=>>>>"#&6s&;;;;88C==(= 8 * *//1KC!!&,,0D0DE 2 &&{'8'89~~!!+"3"34444 &&r*~~~~8##$K,?,?(@@@@ &&r*##K$5$568>>"c+*;*;&<<<<8##$K,?,?(@@@@ &&tO,A,A'BC"((33D9
hnnh7 $$&
f2(((r.   c           	        \        ^^.^^.^^.^	^..^\        P                  ^^.RR.R7      p\        P                  ^^\        P                  ^^\        P                  .. ROr2\        P                  ! VP                  V4      VP                  V,          4       VP                  P                  R4      Vn        \        P                  ! VP                  V4      VP                  V,          RR7       \        RRR	\        P                  R
.RR\        P                  R\        P                  .R. RO/4      p\        P                  ! VP                  4      VR&   \        P                  ! R4      VR,          ,
          P                  ^4      VR&   VP                  . RO4      P                  4       pVP                  . ROR7      p\        P                  ! WE4       R# )r5   r   r   r<  r   Fr  otherr1   rF   rG   r   z
2015-03-22z
2012-01-08amountz
2015-06-18deltarH   N)r5   rl   rl   r5   r   r   r5   )r   rl   rm   r   )rb  r`  r   )rb  r`  r   ra  )r   r   ra   r#   rN   r&   r   r%   rK   r?   to_datetimer   shiftr"   rA   )r'   r(   r  jr  r   s   &     r+   test_reindex_nan+TestDataFrameSelectReindex.test_reindex_nanx  sm   VaVaWq"g.bffa#EN
 1bffaBFF35J1
bjjmRWWQZ888??8,
bjjmRWWQZ%P #sBFFC0rvv|RVVD,
 ^^BGG,6
~~l3bj@GGJ7||67CCE

#G
H
d*r.   c                v   \        \        P                  P                  ^4      P                  ^
4      4      p\	        V\        P
                  ! \        V4      4      R7      p\        \        P
                  ! ^
4      RR7      pVP                  V4      pVP                  P                  R8X  g   Q hVP                  \        \        P
                  ! ^
4      RR7      4      pVP                  P                  R8X  g   Q h\        \        P                  P                  ^4      P                  ^
4      4      p\	        VP                  \        P
                  ! \        V4      4      R7      p\        \        P
                  ! ^
4      RR7      pVP                  VR7      pVP                  P                  R8X  g   Q hR# )r   r   inamenametmpnamerH   N)r   r   r    r!   r   rP  r   r&   r%   rk  r   Tr3   )r'   r~   r(   r  s   &   r+   test_reindex_name_remains4TestDataFrameSelectReindex.test_reindex_name_remains  s$   299((+22267q		#a& 12299R=w/ZZ]xx}}'''ZZbiim)<=xx}}	)))299((+22267qss"))CF"34299R=w/ZZZ"zz')))r.   c                   VP                  VP                  R ,          4      pVR,          P                  \        P                  8X  g   Q hVP                  VP                  4      pVR,          P                  \        P
                  8X  g   Q hVP                  RR.R7      pVR,          P                  \        P                  8X  g   Q hR# )rO  r<   r=   rH   N)r&   r%   rb   r   rL   rM   )r'   	int_framesmallerbiggers   &&  r+   test_reindex_int+TestDataFrameSelectReindex.test_reindex_int  s    ##IOOC$89s|!!RXX---1c{  BJJ...##S#J#7s|!!RXX---r.   c                <   VP                  . ROR7      p\        P                  ! VR,          VR,          4       \        P                  ! VR,          4      P                  4       '       g   Q hRV9  g   Q hVP                  . R7      pVP                  '       g   Q hR# )r<   r=   r   rH   r   Nr<   r=   r   )r&   r#   assert_series_equalr   rR  r   rT  )r'   rV  	new_frames   && r+   test_reindex_columns/TestDataFrameSelectReindex.test_reindex_columns  s    '''@	
y~{3/?@xx	#'++----)###  '''3	r.   c           
     F   \        . RO. RO. R	O.. R
O. R
O\        R7      pVP                  \        ^4      R7      p\        \        P
                  ^^\        P
                  ^\        P
                  .\        P
                  ^^\        P
                  ^\        P
                  .\        P
                  ^^ \        P
                  ^!\        P
                  ... R
O\        ^4      \        R7      p\        P                  ! W#4       VP                  \        ^4      RR7      p\        \        P
                  ^^^^^.\        P
                  ^^^^^.\        P
                  ^^ ^ ^!^!... R
O\        ^4      \        R7      p\        P                  ! W#4       VP                  \        ^4      RR7      p\        ^^^^^\        P
                  .^^^^^\        P
                  .^^^ ^!^!\        P
                  ... R
O\        ^4      \        R7      p\        P                  ! W#4       R# )rk   )r   r%   r3   rb   rH   r   )r3   r   r   N)rk         )      rn   )       !   )r5   r   rm   )r   floatr&   r>   r   ra   r#   rN   rJ  s   &   r+   test_reindex_columns_method6TestDataFrameSelectReindex.test_reindex_columns_method  s   l;	
 E!H-RRVV4RRVV4RRVV4
 !H	
 	f/ E!HW=RR,RR,RR,
 !H	
 	f/ E!HW=RRRVV,RRRVV,RRRVV,
 !H	
 	f/r.   c           
     b   \        \        P                  ! R4      \        R^^4      \        R^^4      \        R^^4      .. ROR7      pRp\        P
                  ! \        VR7      ;_uu_ 4        \        RRR	R
7      pRRR4       RR.pVP                  XR7      P                  P                  pVP                  W4R7      P                  P                  pVP                  VR7      P                  VR7      P                  P                  pWV8X  g   Q hWW8X  g   Q hR#   + '       g   i     L; i)rl   i  r1   rF   r<  z:'d' is deprecated and will be removed in a future version.r=  
2012-01-01z
2012-01-03rI   )r   Nr   rH   rl   rl   rJ   )r   r   onesr   r#   assert_produces_warningr	   r   r&   r%   r   )r'   r(   rD  	time_freq	some_cols
index_freq	both_freqseq_freqs   &       r+   test_reindex_axes,TestDataFrameSelectReindex.test_reindex_axes  s    GGFOD!Q'$1)=xaQR?ST#
 K''cBB"<CHI C#J	ZZiZ066;;
JJYJBHHMM	::I:.66y6IOOTT&&&%%% CBs   /DD.	c                L   \        \        P                  P                  ^4      P	                  R4      4      pVP                  \        \        ^4      4      4      p\        P                  ! VP                  RR 4      P                  4       '       g   Q hVP                  \        ^4      ^ R7      pVP                  \        ^4      4      P                  ^ 4      p\        P                  ! W#4       VP                  \        ^4      RR7      pVP                  4       pRV^&   \        P                  ! W#4       VP                  \        ^4      ^ R7      pVP                  4       p^ V^&   \        P                  ! W#4       VP                  \        ^4      RR7      pVP                  4       pRV^&   \        P                  ! W#4       RVR&   VP                  \        ^4      RR7      pVP                  \        ^4      4      P                  R4      p\        P                  ! W#4       R# )	r   N)r   rH  )r3   r   foo0)r  rm   r   )r   r   r    r!   r6   r&   r   r>   rR  r   r   fillnar#   rN   copyrJ  s   &   r+   test_reindex_fill_value2TestDataFrameSelectReindex.test_reindex_fill_value  s   ryy,,Q/??HI DrO,xxbc*+//1111E"I!4::eBi(//2
f/ E!H=779
f/E!H;779
f/E!H?779
f/ 5	E"I#6::eBi(//4
f/r.   c           
         \        R ^^.R^^./VR7      pVP                  \        R4      . RO^
R7      p\        R . R	OR. R	OR^
R^
/VR7      p\        P                  ! W44       R# )
r1   rF   r   r1  r3   r%   r   rG   rI   Nr   )r5   r   r  r  )r   r&   r   r#   rN   )r'   any_unsigned_int_numpy_dtyper(   r8   rP   s   &&   r+   #test_reindex_uint_dtypes_fill_value>TestDataFrameSelectReindex.test_reindex_uint_dtypes_fill_value#  sj    aVS1a&19UVDLQST.#~sBRH.
 	f/r.   c                    \        R ^^./VR7      pVP                  \        R4      . RO^
R7      p\        R \        . ROVR7      R^
/4      p\        P
                  ! W44       R# )r1   r   abr  rF   N)r   r5   r   )r5   r   r  )r   r&   r   r   r#   rN   )r'   any_numeric_ea_dtyper(   r8   rP   s   &&   r+   /test_reindex_single_column_ea_index_and_columnsJTestDataFrameSelectReindex.test_reindex_single_column_ea_index_and_columns-  s]    aV},@ADJiBO&+?@#rJ
 	f/r.   c                @   \         P                  P                  ^4      P                  ^
4      p\	        V. ROR7      pVP                  4       p\        \        \        V4      4      4      Vn	        \	        V\        \        \        V4      4      4      R7      p\        P                  ! W44       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  \        \        \        V4      4      4      R7       RRR4       R#   + '       g   i     R# ; i)r   r   /cannot reindex on an axis with duplicate labelsr=  N)
r5   r   rl   rm   r   r5   r   rl   rm   r   )r   r    r!   r6   r   r  r   r>   r   r%   r#   rN   rs   r@  rA  r&   )r'   r   r(   r8   rP   rD  s   &     r+   test_reindex_dups,TestDataFrameSelectReindex.test_reindex_dups6  s    ii##A&66r:s"@A E#b'N+SU3r7^(<=
f/ @]]:S11JJT%B.1J2 2111s   .DD	c                   \        . RO. RO. RO.. ROR7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  R.R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        VP	                  RR.R7       RRR4       R#   + '       g   i     LS; i  + '       g   i     R# ; i)	r5   barrH   r  r=  Nr  )r5   r   g      @)r  r1   r1   )r   rs   r@  rA  r&   r'   r(   rD  s   &  r+   #test_reindex_with_duplicate_columns>TestDataFrameSelectReindex.test_reindex_with_duplicate_columnsF  s    +{3=N
 @]]:S11JJwJ' 2]]:S11JJu~J. 21 21111s   B?B1B.	1C	c                   \        R . ROR. RO/4      p\        R ^^\        P                  .R^^\        P                  ./. ROR7      pVP                  . RO4      p\        P
                  ! W24       VP                  . RO^ R7      p\        P
                  ! W24       VP                  . RORR7      p\        P
                  ! W24       R# )	r<   r=   r   r   r%   Nr5   r   rl   rm   r   r?  )r   r5   rl   )r   r   ra   r&   r#   rN   )r'   r(   rP   r8   s   &   r+   test_reindex_axis_style2TestDataFrameSelectReindex.test_reindex_axis_styleQ  s    YY781a.#1bff~6i
 I&
f/IA.
f/IG4
f/r.   c                    \        R . ROR. RO/4      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  ^ ^.. RO4       RRR4       R#   + '       g   i     R# ; i)r<   r=   zCreindex\(\) takes from 1 to 2 positional arguments but 3 were givenr=  Nr  r  r   r   rs   r@  	TypeErrorr&   r  s   &  r+   test_reindex_positional_raises9TestDataFrameSelectReindex.test_reindex_positional_raises`  sN     YY78T]]9C00JJ1v/ 1000s   AA,	c                   \        R . ROR. RO/4      p\        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.R .^R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.R .RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.^ ^.RR	7       RRR4       \        P                  ! \        R
R7      ;_uu_ 4        VP	                  ^ ^.^ .R .R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP	                  ^ ^.^ ^.R7       RRR4       R#   + '       g   i     ELo; i  + '       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LS; i  + '       g   i     EL%; i  + '       g   i     L; i  + '       g   i     R# ; i)r<   r=   zCannot specify both 'axis'r=  )r3   r   Nr%   )r%   r   r3   )r%   r3   r   zCannot specify all)labelsr%   r3   zmultiple valuesr  r  r  r  )r'   r(   s   & r+   test_reindex_axis_style_raises9TestDataFrameSelectReindex.test_reindex_axis_style_raisesh  sw   YY78]]9,HIIJJ1vu1J5 J ]]9,HIIJJ1vu7J; J ]]9,HIIJJaV'J2 J ]]9,HIIJJaV)J4 J ]]9,HIIJJ1vIJ6 J ]]9,HIIJJaVaV)JD J ]]9,@AAJJq!fQC#J? B ]]9,HIIJJaV'J2 J ]]9,HIIJJaV)J4 J ]]9,=>>JJ1vq!fJ- ?>; JII JII JII JII JII JII BAA JII JI ?>>sw   J6<K
 KK2LLL.MMM)6K	
K	K/	2L	L	L+	.L?	M	M&	)M:	c                    \        R . ROR. RO/4      pVP                  ^ ^.R .R7      p\        R ^^./4      p\        P                  ! W#4       R# )r<   r=   rH   Nr  r   r&   r#   rN   rJ  s   &   r+   !test_reindex_single_named_indexer<TestDataFrameSelectReindex.test_reindex_single_named_indexer  sM    YY78QFSE2cAq6]+
f/r.   c                   \        . RO. RO. RO.. RO. ROR7      pVP                  RR.4      pVP                  RR.R7      pVP                  RR.R7      pVP                  RR.^ R7      pVP                  RR.^ R	7      pW4WV3 F  p\        P                  ! W'4       K  	  VP                  RR.R
7      pVP                  RR.^R	7      pVP                  RR.^R7      pW43 F  p\        P                  ! W'4       K  	  VP                  RR.RR.R7      pVP                  RR.RR.R7      pVP                  RR.^ R7      P                  RR.^R7      pW43 F  p\        P                  ! W'4       K  	  R# )r5   r1   rF   rI   er<  r   r  )r  r   r  rH   r2   Nr  )rl   rm   r   )r   r?     rJ   )rI   r  r  r  )r'   r(   res1res2res3res4res5r   s   &       r+   test_reindex_api_equivalence7TestDataFrameSelectReindex.test_reindex_api_equivalence  sz    	9-!#
 zz3*%zzc
z+zz#sz,zz#s!z4zz3*1z-+C!!$, , zz3*z-zz3*1z-zz#s!z4<C!!$,   zzc
S#Jz?zz3*S#Jz?zz#s!z4<<S#JUV<W<C!!$,  r.   c                D   \        \        P                  ! R\        R7      \        P                  ! ^ ^^4      ^ ^.R7      pVP                  \        P                  ! ^
4      4      pVP                  P                  \        P                  8X  g   Q h\        V^ ,          ^,          4      '       g   Q hVP                  \        ^4      R7      pVP                  P                  \        P                  8X  g   Q h\        V^,          4      P                  4       '       g   Q hR# )r  r   r<  rH   N)r  r   )r   r   r  boolrP  r&   r   rb   object_r   r>   r   )r'   framer   s   &  r+   test_reindex_boolean/TestDataFrameSelectReindex.test_reindex_boolean  s    GGG4(		!R0CaQRV
 MM"))B-0	%%333IaLO$$$$MM%(M3	%%333IaL!%%''''r.   c                z    VP                  . ROR7      pR V9   g   Q hVP                  RR.R7      pR V9  g   Q hR# )r  r<   r=   rH   N)r  r<   r=   )r&   )r'   float_string_framer   s   && r+   test_reindex_objects/TestDataFrameSelectReindex.test_reindex_objects  sI    &..7H.I		!!!&..Sz.B	I%%%r.   c                8   \        . RO4      p\        / 4      P                  . ROR7      pVP                  VR7      p\        P                  ! VP
                  V4       VP                  . ROR7      pVR,          P                  \        P                  8X  g   Q hR# )r1   r   rH   r   NrJ   r  rw  )	r   r   r&   r#   r$   r3   rb   r   rM   )r'   rq  r%   dmr   rr  s   &&    r+   test_reindex_corner.TestDataFrameSelectReindex.test_reindex_corner  sz    o&r]"""3JJuJ-	
i//7 ##O#<s|!!RZZ///r.   c           	        \        ^^.^^.\        P                  \        P                  .^^.^	^
..RR.RR\        P                  RR.R7      pVP                  . R
OR7      pVP                  . RO,          p\
        P                  ! W#4       VP                  R.R7      pVP                  ^.,          p\
        P                  ! W#4       VP                  R.R7      pVP                  ^.,          p\
        P                  ! W#4       R	# )r5   r1   rF   g      Y@     @Y@     Y@     Y@r2   r   N)r  r  r  )r5   rl   rm   )r   r   ra   r&   r   r#   rN   rJ  s   &   r+   test_reindex_with_nans1TestDataFrameSelectReindex.test_reindex_with_nans  s    VaVbffbff-1v2w?#J%6
 "78779%
f/5'*77A3<
f/5'*77A3<
f/r.   c                0   \        \        P                  ! R\        P                  R7      4      pVP	                  \        P
                  ! ^^4      R7      pVP                  P                  \        P                  4      P                  4       '       g   Q hR# )r  r   rH   N)r  r  )	r   r   zerosfloat32r&   rP  r   eqr   )r'   r(   r8   s   &  r+   test_reindex_without_upcasting9TestDataFrameSelectReindex.test_reindex_without_upcasting  s^    rxx

;<BIIa$45}}

+//1111r.   c                8   \        \        P                  P                  ^4      P	                  R4      4      pVP                  \        ^4      \        ^4      R7      pVP                  \        \        ^4      4      4      P                  \        ^4      R7      p\        P                  ! W#4       \        \        P                  P                  ^4      P                  ^ ^
R4      4      pVP                  \        ^4      \        ^4      R7      pVP                  \        \        ^4      4      4      P                  \        ^4      R7      p\        P                  ! W#4       \        \        P                  P                  ^4      P                  ^ ^
R4      4      pVP                  \        ^4      \        ^4      R7      pVP                  \        ^4      4      P                  \        ^4      R7      p\        P                  ! W#4       \        \        P                  P                  ^4      P	                  R4      R,           . R	OR7      pVP                  ^ ^.RR.R7      pVP                  ^ ^.4      P                  RR.R7      p\        P                  ! W#4       R# )
r   r<  rH   y              ?r1   rF   Nr  )r   rl   rJ   )r   r   r    r!   r6   r&   r>   r   r#   rN   r  rJ  s   &   r+   test_reindex_multi-TestDataFrameSelectReindex.test_reindex_multi  s   ryy,,Q/??GH%(E!H=::d58n-55eAh5G
f/ryy,,Q/88BGH%(E!H=::d58n-55eAh5G
f/ryy,,Q/88BGH%(E!H=::eAh'//a/A
f/II!!!$44V<rA#

 1a&3*=::q!f%--sCj-A
f/r.   c                |   \         P                  ! \        . RO4      \        \        R^RR7      4      .4      p\	        R \        \        V4      4      /VR7      pVP                  . RO,          pVP                  V4      p\	        R ^ ^^^^^^\        P                  ^.	/VR7      p\        P                  ! WE4       R# )r1   r  r0   r   r   NrJ   )r   r5   r   rl   rm   r   r?     )r   r   r
   r   r   r>   r   r   r&   r   ra   r#   rN   )r'   midxr(   rQ   r8   rP   s   &     r+   #test_reindex_multi_categorical_time>TestDataFrameSelectReindex.test_reindex_multi_categorical_time  s    &&O,J|QSIJ
 U3t9-.d;gg./T"cAq!Q1a#CDDQ
f/r.   c                   \        R \        P                  ! ^RR7      /\        \	        R4      \        \	        R4      4      RR7      R7      pVP                  . R!O4      p\        R ^ ^\        P                  .R\        \	        R4      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  RR	.4      p\        R ^ ^.R\        \	        R4      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  R
.4      p\        R \        P                  .R\        R
.4      /4      P                  R4      p\        P                  ! W#RR7       VP                  R.4      p\        R \        P                  .R\        R.4      /4      P                  R4      p\        P                  ! W#RR7       \	        R4      pVP                  \        RR
.VR7      4      p\        R ^ \        P                  .R\        \	        R4      4      P                  \        V4      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  \        R.VR7      4      p\        R ^ .R\        \	        R4      4      P                  \        V4      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  . R!O4      p\        R ^ ^\        P                  .R\        \	        R4      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  RR	.4      p\        R ^ ^.R\        \	        R4      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  R
.4      p\        R \        P                  .R\        R
.4      /4      P                  R4      p\        P                  ! W#RR7       VP                  \        RR
.VRR7      4      p\        R ^ \        P                  .R\        \	        R4      4      P                  \        VRR7      4      /4      P                  R4      p\        P                  ! W#RR7       VP                  \        RR.RR.R7      4      p\        R ^ \        P                  .R\        \	        R4      4      P                  \        RR.4      4      /4      P                  R4      p\        P                  ! W#RR7       \        R \        P                  ! ^RR7      /\        \	        R4      \        \	        R4      4      RR7      R7      pRp\        P                  ! \         VR7      ;_uu_ 4        VP                  RR	.4       RRR4       Rp\        P                  ! \"        VP%                  R4      R7      ;_uu_ 4        VP                  R.RR7       RRR4       \        P                  ! \"        VP%                  R4      R7      ;_uu_ 4        VP                  R.^R7       RRR4       \        P                  ! \"        VP%                  R4      R7      ;_uu_ 4        VP                  R.^R 7       RRR4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)"r<   rL   r   r2  caber=   )rb   rk  r   r1   rF   r  abeTr  r  rI   
categoriesae)r  ordered)r  adaabbcar  r=  Nz<argument {} is not implemented for CategoricalIndex\.reindexr   r   r   r  r
  r   )r   )r1   rF   r  )r   r   rP  r   r   r   r&   ra   r   r"   r#   rN   r
   rK   rs   r@  rA  NotImplementedErrorformat)r'   r(   r8   rP   catsrQ   rD  s   &      r+   "test_reindex_with_categoricalindex=TestDataFrameSelectReindex.test_reindex_with_categoricalindex  sp   RYYq0 #U#3DL#A	
 O,cAq"&&>3tE{8KLMWW
 	fFS#J'cAq63tDz0BCDNNsS
fFSE"cBFF8S&#-@AKKCP
fFSE"cBFF8S&#-@AKKCP
fF F|Kc
tDE1bff+sF4:$6$=$=>Nt>T$UV

)C. 	 	fFK$?@1#sF49-445Ed5KLM

)C. 	 	fFO,cAq"&&>3tE{8KLMWW
 	fFS#J'cAq63tDz0BCDNNsS
fFSE"cBFF8S&#-@AKKCP
fF Kc
tTRSa[VDJ'../?d/ST

 )C. 	 	fFKc
SzJKa[VDJ'../?c
/KL

 )C. 	 	fFRYYq0 #X&6tF|&D3	
 @]]:S11KKc
# 2 N]].cjj6JKKJJuWJ- L]].cjj6IJJJJuAJ& K]].cjj6IJJJJuAJ& KJ 211
 LKJJJJJs0   .Z>?[[%[8>[	["	%[5	8\		c                    \         P                  ! \        P                  4      p\	        VP
                  4      pV0 Rm8X  g   Q hR# )r'   N>   r   r  r'   r%   r  r   r  r   r3   r   r   )inspect	signaturer   r&   set
parameters)r'   sigr  s   &  r+   test_reindex_signature1TestDataFrameSelectReindex.test_reindex_signaturez  s=    	 1 12(
 
 
 	
 
r.   c                   \         P                  ! RR.4      p\        ^ ^.^^..VRR.R7      p\         P                  ! . R	O4      pVP                  V^ RR7      p\        ^ ^.^^.^^..VRR.R7      p\        P
                  ! WE4       R# )
r1   r   yr<  r   )r   r   Nr1   rF   rI   r  )r  r  )r0   r  )r   from_tuplesr   r&   r#   rN   )r'   mir(   mi2r8   rP   s   &     r+   (test_reindex_multiindex_ffill_added_rowsCTestDataFrameSelectReindex.test_reindex_multiindex_ffill_added_rows  s     ##Z$<=AA'rC:F$$%IJCa8q!fq!fq!f5S3PS*U
f/r.   kwargsr   r   r   Nc                    \        R R^R7      p\        . \        . RR7      R.R7      pVP                  ! V3/ VB p\        R\        P
                  .^,          /V\        R7      p\        P                  ! WE4       R# )	202030s)startr   r   timerj  r1   r<  )r%   rb   N)	r   r   r   r&   r   ra   r   r#   rN   )r'   r  r   r(   r8   rP   s   &&    r+   test_reindex_empty_frame3TestDataFrameSelectReindex.test_reindex_empty_frame  sg     vE1=rr!7#GC*6*cBFF8a<06J
f/r.   src_idxcat_idxc                    \        V! . 4      R .RR7      pVP                  VR7      p\        R .VRR7      p\        P                  ! WE4       R# )Kf8)r3   r%   rb   rH   )r%   r3   rb   Nr  )r'   r  r  r(   r8   rP   s   &&&   r+   test_reindex_empty-TestDataFrameSelectReindex.test_reindex_empty  sF     wr{3%tDG,C5'F
f/r.   rb   m8[ns]r   c                0   \         P                  ! \        R 4      \        ^4      .4      p\	        R^
R7      p\
        P                  ! RR4      pVR8X  d'   W3^ ,          ,
          p\
        P                  ! RR4      p\        W2R7      p\        P                  VR&   VP                  4       pVP                  P                  \        ^.4      4      pVP                  P                  \        R.4      4      pVP!                  WxVR	7      p	\#        ^ . V^ ,          P%                  4       OVN^. V^,          P%                  4       OVNR\
        P&                  ! R.^,          VP(                  R
7      /VR7      p
V	P*                  ^ ^.,          \,        8H  P/                  4       '       g   Q hV	P0                  R,          \        P                  J g   Q hV	P0                  R,          VJ g   Q hV	P0                  R,          VJ g   Q h\2        P4                  ! W4       R# )ABCDEr   rN  NaTr   r  r   :NNrl   r  r   r   Nr   )r   r   )r   r5   )r   r   r   r>   r   r   timedelta64
datetime64r   r?   r  unstackr%   appendr   r3   r&   r   r   r   rb   r   r   r   r   r#   rN   )r'   rb   r  r   r   rB   r(   r%   r3   r   rP   s   &&         r+   #test_reindex_datetimelike_to_object>TestDataFrameSelectReindex.test_reindex_datetimelike_to_object  s    $$d7mU1X%>?r2^^E4(HA,Cud+BS#66C[[]qc
+**##E5'N3jju"jE(RU\\^(R((RU\\^(R(rxx!288<
 
 

Aq6"f,113333xx~'''xx"$$$xx"$$$
c,r.   klassr   c                    \        \        . R .R7      R7      pV! V.4      pVP                  VR7      p\        VR7      p\        P                  ! WV4       R# )r<   r  r   N)r   r   r&   r#   rN   )r'   r%  r   r(   r   r8   rP   s   &&&    r+   test_reindex_not_category4TestDataFrameSelectReindex.test_reindex_not_category  sK     -bcUCDTFm#&3'
f/r.   c                    \        R ^\        P                  ^./4      pRp\        P                  ! \
        VR7      ;_uu_ 4        VP                  . RORR7       RRR4       R#   + '       g   i     R# ; i)r<   zInvalid fill methodr=  asfreqr   N)r5   r   r   )r   r   ra   rs   r@  rA  r&   r  s   &  r+   test_invalid_method.TestDataFrameSelectReindex.test_invalid_method  sP    a^,-#]]:S11JJyJ2 2111s   A%%A6	c                @   \        R ^^.RRR./\        ^
^.RR7      R7      p\        P                  ! ^
^.RR..RR	.R
7      pVP	                  VR7      p\        R . ROR. RO/\        P                  ! ^
^.RR..RR	.R
7      R7      p\
        P                  ! W44       R# )valuer`  r<   r=   r1   rj  r   r   r  rF   r   r   r%   N)r5   r5   r   r   )r<   r<   r=   r=   )r   r   r   r   r&   r#   rN   r'   r(   r   r8   rP   s   &    r+   0test_reindex_index_name_matches_multiindex_levelKTestDataFrameSelectReindex.test_reindex_index_name_matches_multiindex_level  s    q!fgSz2Rs+
 (("XSz"*

 &)<2FG))B8c3Z*@c
S
 	f/r.   c                X   \        R ^^./\        ^
^.RR7      R7      p\        P                  ! ^
^.RR..RR.R7      pVP	                  VR7      p\        R \
        P                  .^,          /\        P                  ! ^
^.RR..RR.R7      R	7      p\        P                  ! W44       R
# )r.  different_namerj  r   r   r  r1   rF   r   r/  N)	r   r   r   r   r&   r   ra   r#   rN   r0  s   &    r+   1test_reindex_index_name_no_match_multiindex_levelLTestDataFrameSelectReindex.test_reindex_index_name_no_match_multiindex_level   s    !Q(r2hEU0VW((2r(S#J)?SzR&)BFF8a<())B8c3Z*@c
S
 	f/r.   rj   )r   r5   r5   r   )r   r5   r   r   r   )r   r=   r<   )r   r   r<   r   r   )r   r<   r=   )r=   r<   r   )r<   r   r=   ))r  )r  r  )r  r  r  )r  r  )r  r  r  )r  )r  r  )r  r  r  )r  r  )r  r  r  )r  )r  r  )r  r  r  )r  r  )r  r  r  )r!  r"  r   )r   rl   rm   r   r5   r  	   r   r?  r  r  rk   r}  r~                    )r   r"  r!  )r   r5   r   rl   rm   r  rk   r}  r   r?  r  r  r7  r;  r<  r=  r9  r:  r~  r8  )r   r5   r   r?  r  r  rk   r}  r9  r:  r;  r<  r=  )r   r5   r   rl   rm   r  rk   r}  r  r7  r;  r<  r=  r~  r8  )	rl   r   r5   r   r   rm   r  r  r?  )rl   r   r5   r   r   r  r  r?  )rl   r   r5   r  r  r?  )r5   rl   rm   r?  r  )r   r5   rm   r   r?  )	rl   r   r   r5   rm   r   r  r  r?  )r   rm   r   )Ero   rp   rq   rr   rs   rt   xfailr   r   r   r   r   r   ru   r   ra   r   r   r   r   r   r   r   r  r*  r.  r   r9  rE  rK  r]  rf  rn  rt  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r   r  r   r   r  r#  r'  r+  r1  r5  rv   rw   rx   s   @r+   r{   r{      s     [[BB(*AA>/A&  
-
-0-:I@V [[ %RVVQ1%&&	
008
000# [[
<	 7S#sBFF,C"DE	*		*0  [[d#!4(UDMd#d#3Z3Z3Zd#3Ze$	
"N#"N& [[	
( +)( +D [[ &V
 &V U^LMU^RS	
++: [[(']7>&\3T:%[,d3%[/40%[/40']7>&\9d+$ZU#		
NN7 0=)~+:*"	.	10f&&0B003 	/00!.F0-:(&00&20@0c'J
"0 [[uk9Q+?@z;	!0DEy!t		
00 [[Y0@(AB[[ "IR 3*c3Z(3*c3Z(		
0 C0 [[Wx&:; - < -D [[Wu.>&?@[[Vc3Z00 1 A030"	0 	0r.   r{   )!r   r   r  numpyr   rs   pandas._libs.tslibs.timezonesr   r_   pandas.compatr   r   pandas.compat.numpyr   pandas.errorsr	   pandasr?   r
   r   r   r   r   r   r   r   pandas._testing_testingr#   pandas.api.typesr   r   r{   rj   r.   r+   <module>rH     sX       A / ( 	 	 	  -^
 ^
BG0 G0r.   