| 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/extension/base/__pycache__/ |
Upload File : |
�
/ �g� � �4 � d dl Z d dlZd dlmZ G d� d� Zy)� Nc � � e Zd ZdZdej
dedefd�Zdej
dedefd�Z e
j j ddd g� d
� � Z
y)�BaseAccumulateTestszj
Accumulation specific tests. Generally these only
make sense for numeric/boolean operations.
�ser�op_name�returnc � � y)NF� )�selfr r s �HC:\Python312\Lib\site-packages\pandas/tests/extension/base/accumulate.py�_supports_accumulationz*BaseAccumulateTests._supports_accumulation
s � � � �skipnac �� � |j d� } t ||� |�� } t ||� |�� }t j
||d�� y # t $ r |j t � }Y �_w xY w)N�float64�r F)�check_dtype)�astype� TypeError�object�getattr�tm�assert_series_equal)r
r r r �alt�result�expecteds r �check_accumulatez$BaseAccumulateTests.check_accumulate sn � � %��*�*�Y�'�C�
'���g�&�f�5��(�7�3��(��7��
���v�x�U�C��
� %��*�*�V�$�C� %�s �A �A3�2A3TFc � � |}t j |� }| j ||� r| j |||� y t j
t t f� 5 t ||� |�� d d d � y # 1 sw Y y xY w)Nr ) �pd�Seriesr r �pytest�raises�NotImplementedErrorr r )r
�data�all_numeric_accumulationsr r r s r �test_accumulate_seriesz*BaseAccumulateTests.test_accumulate_series sn � �+���i�i��o���&�&�s�G�4��!�!�#�w��7���� 3�Y�?�@�
5�%���W�%�V�4�
5�
5�
5�s �A:�:BN)�__name__�
__module__�__qualname__�__doc__r r �str�boolr r r �mark�parametrizer% r r
r r r sp � ��
�"�)�)� �c� �d� �
D�B�I�I� D�� D�T� D� �[�[���X��e�}�5� 5� 6� 5r
r )r �pandasr �pandas._testing�_testingr r r r
r �<module>r1 s ��
� � � 5� 5r