o
    Û­j  ã                	   @   sœ   d dl Zd dlZd dlZd dlmZmZmZm	Z	m
Z
mZmZmZ ejeeee	e
eeegd�dd„ ƒZejdd„ ƒZejdd	„ ƒZejdd	gd�d
d„ ƒZdS )é    N)Ú	Int8DtypeÚ
Int16DtypeÚ
Int32DtypeÚ
Int64DtypeÚ
UInt8DtypeÚUInt16DtypeÚUInt32DtypeÚUInt64Dtype)Úparamsc                 C   s   |   ¡ S )z.Parametrized fixture returning integer 'dtype'©Úparam)Úrequest© r   úa/var/www/html/CropPilot/venv/lib/python3.10/site-packages/pandas/tests/arrays/integer/conftest.pyÚdtype   s   r   c                 C   s<   t jttdƒƒtjg ttddƒƒ tjg ddg | d�S )z¹
    Fixture returning 'data' array with valid and missing values according to
    parametrized integer 'dtype'.

    Used to test dtype conversion with and without missing values.
    é   é
   éb   éc   éd   ©r   )ÚpdÚarrayÚlistÚrangeÚnpÚnanr   r   r   r   Údata"   s   0þr   c                 C   s   t jtjdg| d�S )zÀ
    Fixture returning array with exactly one NaN and one valid integer,
    according to parametrized integer 'dtype'.

    Used to test dtype conversion with and without missing values.
    é   r   )r   r   r   r   r   r   r   r   Údata_missing0   s   r   c                 C   s    | j dkr|S | j dkr|S dS )z�Parametrized fixture returning 'data' or 'data_missing' integer arrays.

    Used to test dtype conversion with and without missing values.
    r   r   Nr   )r   r   r   r   r   r   Úall_data;   s
   

ÿr    )Únumpyr   ÚpytestÚpandasr   Úpandas.core.arrays.integerr   r   r   r   r   r   r   r	   Úfixturer   r   r   r    r   r   r   r   Ú<module>   s,    (øÿ



