+
    yȇi                         ^ RI t^ RIt^ RIt^ RIHtHt ^ RIHt	 R t
R tR tR tR t]P                  P!                  R4      R	 4       tR
 tR tR# )    N)Index
MultiIndexc                 `   V P                  R	R
.4      p\        P                  ! R	R
.4      pV P                  V4      pV . RO,          p\        P                  ! W4       \        P                  ! W44       V P                  R.4      pV . RO,          p\        P                  ! W4       V P                  R 4      pV . RO,          p\        P                  ! W4       \        P                  ! R.4      p\
        P                  ! \        RR7      ;_uu_ 4        V P                  R.4       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        V P                  V4       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        V P                  R R.4       RRR4       \        P                  ! R
R.4      p\
        P                  ! \        RR7      ;_uu_ 4        V P                  V4       RRR4       V P                  VRR7      pV . RO,          p\        P                  ! W4       V P                  VRR7      pV . RO,          p\        P                  ! W4       V P                  R R.RR7      pV . RO,          p\        P                  ! W4       V P                  R R
.4      pV . RO,          p\        P                  ! W4       . ROp\
        P                  ! \        RR7      ;_uu_ 4        V P                  V4       RRR4       V P                  VRR7      pV . RO,          p\        P                  ! W4       R#   + '       g   i     EL/; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i)footwobarz^\('bar', 'two'\)$matchNz^'two'$ignore)errors)r   r   quxone)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   )dropr   from_tuplestmassert_index_equalpytestraisesKeyError)idxdroppedindexdropped2expectedmixed_indexs   &     t/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/multi/test_drop.py	test_dropr#      s   hh78G""NN#CDExxH< H',(-hhwG?#H',hhuoG< H',""N#34E	x'<	=	=.!" 
>	x'<	=	= 
>	xz	2	2%  
3 ((..)IJK	x'<	=	= 
> hhuXh.G%&H',hh{8h4G?#H',hhu~hh7G< H', hh~./G9~H', 1K	xz	2	2 
3hh{8h4G9~H',I 
>	=	=	=	=	=	2	2	2
 
>	=	=. 
3	2s<   MM!M5)N	=NM	!M2	5N		N	N-	c           	      V   W P                  R 4      ,          pVP                  ^ 4      pVP                  R8X  g   Q h\        \	        \        ^4      4      \	        \        ^4      4      \	        \        ^4      4      .\        P                  ! . RO4      \        P                  ! . RO4      \        P                  ! . RO4      .. ROR7      pVP                  ^ 4      pVP                  R	8X  g   Q hVP                  R4      pVP                  ^4      pVP                  V4      '       g   Q hR# )
r   secondr   levelscodesnamesN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   three)r   r.   )
get_loc	droplevelnamer   r   rangenparrayr)   equals)r   r   r   r    s   &   r"   test_droplevel_with_namesr6   F   s    E"#Eooa G<<8###eAhuQx%a/BHH-.HH-.HH-.

 &E ooa G==,,,,ooe$Gq!H>>(####    c            	         \        \        \        ^4      4      \        \        ^4      4      \        \        ^4      4      .\        P                  ! . R
O4      \        P                  ! . RO4      \        P                  ! . RO4      .. ROR7      p V R,          P                  RR.4      pV R,          P                  ^4      P                  ^ 4      pVP                  V4      '       g   Q hV R,          P                  . 4      pV R,          pVP                  V4      '       g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        V R,          P                  . RO4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V R,          P                  RR	.4       RRR4       R#   + '       g   i     LY; i  + '       g   i     R# ; i)r   r   r.   r&   :Nr   NzSCannot remove 3 levels from an index with 3 levels: at least one level must be leftr	   Nz'Level four not found'fourr*   r+   r,   r-   )r   r   r2   r3   r4   r0   r5   r   r   
ValueErrorr   )r   r   r    msgs       r"   test_droplevel_listr<   \   s^   eAhuQx%a/BHH-.HH-.HH-.

 &E Bi!!7E"23GRy""1%//2H>>(####Bi!!"%GRyH>>(####	*  
z	-	-b	34 
. 
x'?	@	@b	UFO, 
A	@ 
.	- 
A	@	@s   	F5G5G	G	c                 R   . ROp\         P                  ! VRR.R7      pVP                  4       '       g   Q h\        P                  ! . R	O. R
O. RO.R7      pVP                  R RR.RR7      pVP                  4       pVP                  pVP                  4       '       d   Q h\        P                  ! W$4       \        P                  ! V 4      ;_uu_ 4        \        P                  ! VP                  R 4      VP                  R 4      4       RRR4       R#   + '       g   i     R# ; i)abcr)   d)columnsdata)r   rC   valuesN))r>    )b1c1)b2c2)r>   r?   r@   rB   )r   rG   rH   r   )r   rI   rJ   r   )r   r   _is_lexsortedpd	DataFramepivot_tablereset_indexrC   r   r   assert_produces_warningr   )performance_warningtupleslexsorted_midfnot_lexsorted_mis   &    r"   test_drop_not_lexsortedrV   z   s     5F))&c
CL%%'''' 
$,>@R+S
B 
cC:c	BB		Bzz--//// ,9		#	#$7	8	8
l//46F6K6KC6PQ 
9	8	8	8s   6DD&	c                    \         P                  ! R V 3.RR.R7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  \        P                  ! R4      RR7       RRR4       R#   + '       g   i     R# ; i)	blahr1   daterA   z@labels \[Timestamp\('2001-01-01 00:00:00'\)\] not found in levelr	   2001levelN)r   r   r   r   r   r   rL   	Timestamp)nulls_fixturemir;   s   &  r"   test_drop_with_nan_in_indexr`      s_    			&-!8 9&&AQ	RB
MC	xs	+	+
V$F3 
,	+	+	+s   (A66B	z(ignore::pandas.errors.PerformanceWarningc                      \         P                  ! . RO4      p V P                  R4      p\         P                  ! R.4      p\        P                  ! W4       R# )r   Nr   r   r   r   )rb   rc   rb   )r   r   r   r   r   )r_   resultr    s      r"   'test_drop_with_non_monotonic_duplicatesre      sB     
		 8	9BWWV_F%%vh/H&+r7   c                  @   \         P                  ! . R	O4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  ^^ R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V P                  ^^.^ R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  \        P                  .^ R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V P                  \        P                  ^^^.^ R7       RRR4       \         P                  ! \        P                  ^3R.4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  \        P                  ^R.^ R7       RRR4       R#   + '       g   i     ELs; i  + '       g   i     ELE; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)
r   zlabels \[4\] not found in levelr	   r[   Nz!labels \[nan\] not found in levelz!labels \['a'\] not found in levelr>   rb   )rb   )r   r   )r   r   )r   r   r   r   r   r   r3   nan)r_   r;   s     r"   1test_single_level_drop_partially_missing_elementsrh      s[    
		 8	9B
,C	xs	+	+
 
,	xs	+	+
Aa  
,
.C	xs	+	+
" 
,	xs	+	+
Aq!+ 
, 
		"&&!f 5	6B
.C	xs	+	+
C * 
,	+ 
,	+	+	+	+	+ 
,	+	+	+	+
 
,	+	+s;   F=?G#G%&G9%H=G	G"	%G6	9H		H	c                      \         P                  ! R.RR7      p V P                  . 4      p\        ^.RR7      p\        P
                  ! W4       R# )r   r?   rA   )r1   N)r   )r?   )r   r   r0   r   r   r   )r   rd   r    s      r"   #test_droplevel_multiindex_one_levelrj      s@    ""D68E__R FaSs#H&+r7   )numpyr3   r   pandasrL   r   r   pandas._testing_testingr   r#   r6   r<   rV   r`   markfilterwarningsre   rh   rj    r7   r"   <module>rr      sb       7-t$,-<R.4 FG, H,+*,r7   