| 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/__pycache__/ |
Upload File : |
�
/ �g� � � � d dl Z d dlZd dlmZ d dlmZmZ ej d� � Zej d� � Z ej d� � Z
ej d� � Z ej dd g�
� d� � Zej d� � Z
ej d
� � Zej d� � Zej d� � Zej d� � Zej d� � Z ej ddg�
� d� � Z ej d� d� d� d� gg d��� d� � Z ej ddg�
� d� � Z ej ddg�
� d� � Z ej ddg�
� d� � Z ej dd g�
� d!� � Z ej ddg�
� d"� � Zej d#� � Zej d$efd%�� Zy)&� N)�_get_option)�Series�optionsc � � t �)z3A fixture providing the ExtensionDtype to validate.��NotImplementedError� � �AC:\Python312\Lib\site-packages\pandas/tests/extension/conftest.py�dtyper
�
� � �r
c � � t �)z�
Length-100 array for this type.
* data[0] and data[1] should both be non missing
* data[0] and data[1] should not be equal
r r r
r �datar �
� � �r
c �t � | j s'| j dk( st j | � d�� t �)z�
Length-100 array in which all the elements are two.
Call pytest.skip in your fixture if the dtype does not support divmod.
�mz is not a numeric dtype)�_is_numeric�kind�pytest�skipr �r s r �
data_for_twosr s4 � �
������s�!2� ���u�g�4�5�6�
�r
c � � t �)zLength-2 array with [NA, Valid]r r r
r �data_missingr - r
r
r r )�paramsc �H � | j dk( r|S | j dk( r|S y)z5Parametrized fixture giving 'data' and 'data_missing'r r N��param)�requestr r s r �all_datar 3 s, � � �}�}����� ���.� (���
)r
c � � � � fd�}|S )a
Generate many datasets.
Parameters
----------
data : fixture implementing `data`
Returns
-------
Callable[[int], Generator]:
A callable that takes a `count` argument and
returns a generator yielding `count` datasets.
c 3 �6 �K � t | � D ] }��� � y �w�N)�range)�count�_r s �r �genzdata_repeated.<locals>.genL s �� �� ��u�� �A��J� �s �r )r r'