
    Mh                     @    S SK rS SKJrJrJr  S SKJr   " S S5      r	g)    N)	DataFrame
MultiIndexSeriesc                   &    \ rS rSrS rS rS rSrg)TestDataFramePop   c                 (   SUR                   l        UR                  S5        SU;  d   eSUS'   UR                  S5        SU;  d   eUR                   R                  S:X  d   e[        / SQ/ SQ// SQSS	/S
9nUR                  S5      n[        R
                  " U5         US-  nS S S 5        [        SS/SS//SS/SS	/S
9n[        R                  " X55        [        SS/SS	/SS9S-   n[        R                  " XE5        g ! , (       d  f       Nb= f)NbazAbarfoo)         )         )r   BCXY)columnsindexr   r   r   r   r   r   r   r   )r   name)	r   r   popr   tmassert_cow_warningassert_frame_equalr   assert_series_equal)selffloat_framewarn_copy_on_writeabexpecteds         U/var/www/html/env/lib/python3.13/site-packages/pandas/tests/frame/methods/test_pop.pytest_popTestDataFramePop.test_pop   s   #( +%%%"EK'''""''5000 y),ocSVZXEE#J""#56FA 7 q!fq!f-Sz#sT
a* 1a&c
=A
q+ 76s   !D
Dc                 b   [        SS/SS/SS/S.5      n/ SQUl        UR                  S5      n[        U5      [         :X  d   e[	        U5      S:X  d   e[	        UR                  5      S:X  d   eS	UR                  ;   d   eSUR                  ;  d   e[	        UR
                  5      S:X  d   eg )
Nr   r   r   r   )r   r   r   )r#   r$   r#   r#   r   r$   )r   r   r   typelenr   )r    dfress      r&   test_pop_non_unique_cols)TestDataFramePop.test_pop_non_unique_cols%   s    Aq6q!f!Q89$
ffSkCyI%%%3x1}}2::!###bjj   "**$$$288}!!!    c                 x   / SQ/ SQ/ SQ/n[        [        U6 5      n[        R                  " U5      n[	        [
        R                  R                  S5      R                  S5      US9nUR                  5       nUR                  5       nUR                  S5      nUR                  S5      n[        R                  " XS	S
9  [        R                  " XV5        UR                  S:X  d   eUS   nUR                  S/SS9nUR                  S5      n[        R                  " X5        [        R                  " XV5        g )N)r#   topr2   routine1r3   routine2) ODr6   result1result2r7   )r5   wxwyr5   r5   r5   r   )r   r   )r   r#   )r#   r5   r5   F)check_namesr2   r   )axis)sortedzipr   from_tuplesr   nprandomdefault_rngstandard_normalcopyr   r   r   r   r   drop)	r    arraystuplesr   r,   df1df2resultr%   s	            r&   test_mixed_depth_pop%TestDataFramePop.test_mixed_depth_pop1   s    C=(
 V%&&v.ryy,,Q/??GQVWggiggi77=)
xUC
c'{{c!!!u:hhwQh'
h/
c'r0    N)__name__
__module____qualname____firstlineno__r'   r.   rK   __static_attributes__rM   r0   r&   r   r      s    ,2
"(r0   r   )
numpyr@   pandasr   r   r   pandas._testing_testingr   r   rM   r0   r&   <module>rW      s!     
 =( =(r0   