
    bMh                     H    d dl Z d dlmZmZmZ d dlmZ  G d d          ZdS )    N)	DataFrameIndex
MultiIndexc                       e Zd Zd ZdS )TestDropLevelc                    t          j        ddgddg          }t          j        g dddg          }t          d	d
gddgddgg||          }|t          ur|j        d d df         }|                    dd          }|                    dd          }t          j        ||           |t          u rZ|                                }t          ddgd          |_
        |                    dd          }t          j        ||           d S t          j        t          d          5  |                    dd           d d d            d S # 1 swxY w Y   d S )N)ce)dflevel_1level_2)names))      )      )	   
   ab                  )indexcolumnsr   T)dropr   )axisr	   r   )namer   zNo axis named columns)matchr   )r   from_tuplesr   ilocreset_index	dropleveltmassert_equalcopyr   r   pytestraises
ValueError)selfframe_or_seriescolsmidfexpectedresults          i/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/frame/methods/test_droplevel.pytest_droplevelzTestDropLevel.test_droplevel   s   %$Y	,B
 
 
 #$=$=$=c3ZPPPAAR1TJJJ)++AB >>#D>11c00
)))i''wwyyH$c3Zi@@@H\\))\<<FOFH----- z1HIII 0 0QY///0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s   +EEEN)__name__
__module____qualname__r6        r5   r   r      s#        0 0 0 0 0r;   r   )	r+   pandasr   r   r   pandas._testing_testingr(   r   r:   r;   r5   <module>r?      s             
      0 0 0 0 0 0 0 0 0 0r;   