| 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 : C:/Python312/Lib/site-packages/pandas/tests/base/__pycache__/ |
Upload File : |
�
. �g� � � � d Z ddlZddlZddlmZ ddlmZ ddl m
Z
d� Zej j dej dg� d� � Zy)zg
Though Index.fillna and Series.fillna has separate impl,
test here to confirm these works as the same
� N)�
MultiIndex)�allow_na_opsc �H � | }t |t � r8d}t j t |�� 5 |j d� d d d � y t
|� dkD r|j d nd}|j |� }t j ||� ||usJ �y # 1 sw Y y xY w)Nz"isna is not defined for MultiIndex)�matchr )
�
isinstancer �pytest�raises�NotImplementedError�fillna�len�values�tm�assert_equal)�index_or_series_obj�obj�msg�
fill_value�results �?C:\Python312\Lib\site-packages\pandas/tests/base/test_fillna.py�test_fillnar s� � �
�C��#�z�"�2��
�]�]�.�c�
:� ��J�J�q�M� �� #&�c�(�Q�,����A��A�J�
�Z�Z�
�
#�F��O�O�C�� � �f���� ��s �B�B!�null_objc �� � |}t |� }t |� st j |� d�� nMt |� dk rt j d� n)t |t � rt j d| � d�� |j }|d }|j � }| |dd ||dd ||� } ||� }|j |� }t j ||� ||usJ �y )Nz doesn't allow for NA operations� z%Test doesn't make sense on empty datazMultiIndex can't hold '�'r � )�typer r �skipr r r �_values�copyr r r )r r r �klassr
r �expectedr s r �test_fillna_nullr"