| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python312/Lib/site-packages/pandas/tests/frame/methods/__pycache__/ |
Upload File : |
�
/ �g� � �@ � d dl Z d dlmZmZmZ d dlmZ G d� d� Zy)� N)� DataFrame�Index�
MultiIndexc � � e Zd Zd� Zy)�
TestDropLevelc �~ � t j ddgddg�� }t j g d�ddg�� }t d d
gddgd
dgg||�� }|t ur|j d d �df }|j dd�� }|j dd�� }t
j ||� |t u rN|j � }t ddgd�� |_
|j dd�� }t
j ||� y t j t d�� 5 |j dd�� d d d � y # 1 sw Y y xY w)N)�c�e)�d�f�level_1�level_2)�names))� � )� � )� �
�a�b� � � � � � )�index�columnsr T)�dropr )�axisr r )�namer zNo 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 �KC:\Python312\Lib\site-packages\pandas/tests/frame/methods/test_droplevel.py�test_droplevelzTestDropLevel.test_droplevel s$ � ��%�%�
��$�Y� �,B�
�� �
#�
#�$=�c�3�Z�
P��
��A���A���R��1��T�
J���)�+�����A���B� �>�>�#�D�>�1�����c���0��
�����)��i�'��w�w�y�H�$�c�3�Z�i�@�H���\�\�)�)�\�<�F��O�O�F�H�-� ���z�1H�I�
0����Q�Y��/�
0�
0�
0�s �D3�3D<N)�__name__�
__module__�__qualname__r6 � � r5 r r s � �0r; r ) r+ �pandasr r r �pandas._testing�_testingr( r r: r; r5 �<module>r? s! ��
�� �
�0� 0r;