o
    _~#g                     @   s:   d dl Z d dlmZmZmZ d dlmZ G dd dZdS )    N)	DataFrameIndex
MultiIndexc                   @   s   e Zd Zdd ZdS )TestDropLevelc                 C   s  t jddgddgd}t jg dddgd}td	d
gddgddgg||d}|tur3|jd d df }|jddd}|jddd}t|| |tu rg| }t	ddgdd|_
|jddd}t|| d S tjtdd |jddd W d    d S 1 sw   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result r2   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/frame/methods/test_droplevel.pytest_droplevel   s$    "zTestDropLevel.test_droplevelN)__name__
__module____qualname__r4   r2   r2   r2   r3   r      s    r   )	r(   pandasr   r   r   pandas._testing_testingr%   r   r2   r2   r2   r3   <module>   s    