a
    Pf                  
   @   s  d dl Zd dlZd dlZd dlmZ ejdejdejdgddd Z	dd	 eejejfD Z
e
d
d	 eejfD  e
dd	 ejejejfD  e
ejdejdg e
g d eje
ddd Zejed eded gdd ddd Zejejdejdejdd ededdeddgdd ddd Zejejdejd ejdd! ejd"d#edded d$gd%d dd&d' Zejdejdej gZejed(dejd)d! ed*ge dd+d, ZdS )-    N)Index   dtype)paramsc                 C   s   | j S )a@  
    Several variants of integer value 1. The zero-dim integer array
    behaves like an integer.

    This fixture can be used to check that datetimelike indexes handle
    addition and subtraction of integers and zero-dimensional arrays
    of integers.

    Examples
    --------
    dti = pd.date_range('2016-01-01', periods=2, freq='h')
    dti
    DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 01:00:00'],
    dtype='datetime64[ns]', freq='h')
    dti + one
    DatetimeIndex(['2016-01-01 01:00:00', '2016-01-01 02:00:00'],
    dtype='datetime64[ns]', freq='h')
    paramrequest r   Y/var/www/ai-form-bot/venv/lib/python3.9/site-packages/pandas/tests/arithmetic/conftest.pyone   s    r   c                 C   s4   g | ],}t jt jt jfD ]}|d gd |dqqS )r      r   )npint64uint64float64).0box_clsr   r   r   r   
<listcomp>   s   r   c                 C   s    g | ]}|d gd t jdqS )       r   r   )r   r   )r   r   r   r   r   r   $       c                 C   s   g | ]}t jd |dqS )r   r   )r   array)r   r   r   r   r   r   %   r   r   )r   g        r   c                 C   s   | j S )a  
    Several types of scalar zeros and length 5 vectors of zeros.

    This fixture can be used to check that numeric-dtype indexes handle
    division by any zero numeric-dtype.

    Uses vector of length 5 for broadcasting with `numeric_idx` fixture,
    which creates numeric-dtype vectors also of length 5.

    Examples
    --------
    arr = RangeIndex(5)
    arr / zeros
    Index([nan, inf, inf, inf, inf], dtype='float64')
    r   r	   r   r   r   zero*   s    r   Z10m7sc                 C   s
   t | jS Ntype__name__xr   r   r   <lambda>H   r   r    )r   Zidsc                 C   s   | j S )zV
    Several variants of Timedelta scalars representing 10 minutes and 7 seconds.
    r   r	   r   r   r   	scalar_tdB   s    r!      H   )daysz72:00:00Dhc                 C   s
   t | jS r   r   r   r   r   r   r    Z   r   c                 C   s   | j S )za
    Several timedelta-like and DateOffset objects that each represent
    a 3-day timedelta
    r   r	   r   r   r   
three_daysQ   s    r'      x   )hoursi   )secondsmc                 C   s
   t | jS r   r   r   r   r   r   r    m   r   c                 C   s   | j S )zb
    Several timedelta-like and DateOffset objects that each represent
    a 2-hour timedelta
    r   r	   r   r   r   	two_hoursd   s    r-         z23:00:00c                 C   s   | j S )zo
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Daily frequencies.
    r   r	   r   r   r   	not_daily~   s    r0   )numpyr   ZpytestZpandaspdr   Zfixturer   r   r   Zzerosextendr   r   r   Z	TimedeltaZto_pytimedeltaZto_timedelta64r!   offsetsZDayZHourZtimedelta64r'   ZMinuter-   Z	YearBeginZ
MonthBeginZ_common_mismatchr0   r   r   r   r   <module>   sr   
 













	


