
    bMh                        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                  g          d             Z	d eej        ej        fD             Z
e
                    d eej        fD                        e
                    d	 ej        ej        ej        fD                        e
                     ej        d
ej                  g           e
                    g d            ej        e
          d             Z ej         ej        d                                           ej        d           ej        d                                          gd           d             Z ej        ej                            d          ej                            d           ej        d                                           ej        d           ej        dd           ej        dd          gd           d             Z ej        ej                            d          ej                            d           ej        d                                           ej        d           ej        dd           ej        dd          gd           d              Zej                            d          ej                            d          ej                                        gZ ej         ej        d!d           ej        d"                                           ej        d#          gez             d$             ZdS )%    N)Index   dtype)paramsc                     | 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requests    `/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/arithmetic/conftest.pyoner      s    ( =    c                 |    g | ]9}t           j        t           j        t           j        fD ]} |d gdz  |          :S )r      r   )npint64uint64float64).0box_clsr   s      r   
<listcomp>r      sa     	 	 	(BIrz2	 	 	 GQC!G5!!!	 	 	 	r   c                 D    g | ]} |d gdz  t           j                  S )       r   r   )r   r   )r   r   s     r   r   r   $   s/    UUUggtfqj
333UUUr   c                 :    g | ]}t          j        d |          S )r   r   )r   array)r   r   s     r   r   r   %   s'    VVV5bhq&&&VVVr   r   )r   g        r   c                     | 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   s    r   zeror   *   s    " =r   10m7sc                 *    t          |           j        S Ntype__name__xs    r   <lambda>r'   H       $q''" r   )r   idsc                     | j         S )zV
    Several variants of Timedelta scalars representing 10 minutes and 7 seconds.
    r	   r   s    r   	scalar_tdr+   B   s     =r      H   )daysz72:00:00Dhc                 *    t          |           j        S r!   r"   r%   s    r   r'   r'   Z   r(   r   c                     | j         S )za
    Several timedelta-like and DateOffset objects that each represent
    a 3-day timedelta
    r	   r   s    r   
three_daysr3   Q         =r      x   )hoursi   )secondsmc                 *    t          |           j        S r!   r"   r%   s    r   r'   r'   m   r(   r   c                     | j         S )zb
    Several timedelta-like and DateOffset objects that each represent
    a 2-hour timedelta
    r	   r   s    r   	two_hoursr<   d   r4   r         z23:00:00c                     | j         S )zo
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Daily frequencies.
    r	   r   s    r   	not_dailyr@   ~   s     =r   )numpyr   pytestpandaspdr   fixturer   r   r   zerosextendr   r   r   	Timedeltato_pytimedeltato_timedelta64r+   offsetsDayHourtimedelta64r3   Minuter<   	YearBegin
MonthBegin_common_mismatchr@    r   r   <module>rT      s                  828ARX6667888  98,	 	28RX.	 	 	
 UUE28CTUUU V V V VVRXry"*4UVVV W W W hbht2:.../ 0 0 0 ^^^    u  . W,,..WW,,..
 	#"     

q

!++--Z  q#r3 	#"
 
 
 
 
 



#1,,..X&&&q#sC   	#"
 
 
 
 
 JJ!J  q#2--//Z  
       r   