
    d                     	   d dl Zd dlZd dlZd dlmZmZ d dlmZ	 d dl
mZ  ej        dd dgddg          d	             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 ej        dd                     e ej        dd                     e ej        dd                     ed          gd           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./                                           ej         d.d0           ej        d.*          ge&z             d1             Z' ej         ej         d2d#           ej        d3(                                           ej        d4          ge&z             d5             Z( ej         ej         d6d"           ej        d6                                            ej        d6           ge&z             d7             Z) ej        eej*        e	j+        ej        e,gd8           d9             Z-dS ):    N)Index
RangeIndex)expressionsTi@B numexprpython)autouseparamsidsc              #   n   K   t           j        }| j        t           _        | j        V  |t           _        d S N)expr_MIN_ELEMENTSparam)requestr   s     \/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/tests/arithmetic/conftest.pyswitch_numexpr_min_elementsr      s4      &M D
-&D       dtype)r	   c                     | 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')
    r   r   s    r   oner      s    ( =r   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#   2   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#   7   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#   8   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   r   r    r   r   c                 *    t          |           j        S r   type__name__xs    r   <lambda>r0   `       $q''" r   )r	   r
   c                     | j         S )z7
    Several types of numeric-dtypes Index objects
    r   r   s    r   numeric_idxr3   X   s     =r   10m7sc                 *    t          |           j        S r   r+   r.   s    r   r0   r0   s   r1   r   c                     | j         S )zV
    Several variants of Timedelta scalars representing 10 minutes and 7 seconds.
    r   r   s    r   	scalar_tdr7   m   s     =r      H   )daysz72:00:00Dhc                 *    t          |           j        S r   r+   r.   s    r   r0   r0      r1   r   c                     | j         S )za
    Several timedelta-like and DateOffset objects that each represent
    a 3-day timedelta
    r   r   s    r   
three_daysr?   |         =r      x   )hoursi   )secondsmc                 *    t          |           j        S r   r+   r.   s    r   r0   r0      r1   r   c                     | j         S )zb
    Several timedelta-like and DateOffset objects that each represent
    a 2-hour timedelta
    r   r   s    r   	two_hoursrH      r@   r      )minutessc                     | j         S )zp
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Hourly frequencies.
    r   r   s    r   
not_hourlyrM           =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_dailyrR      rN   r   im  c                     | j         S )z{
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Monthly or Annual frequencies.
    r   r   s    r   mismatched_freqrT      rN   r   c                     | j         S r   )r-   r.   s    r   r0   r0      s    !* r   c                     | j         S )zc
    Fixture to test behavior for Index, Series, tm.to_array, numpy Array and list
    classes
    r   r   s    r   box_1d_arrayrW      s     =r   ).numpyr   pytestpandaspdr   r   pandas._testing_testingtmpandas.core.computationr   r   fixturer   r'   r   r   zerosextendr   r    r)   aranger3   	Timedeltato_pytimedeltato_timedelta64r7   offsetsDayHourtimedelta64r?   MinuterH   	YearBegin
MonthBegin_common_mismatchrM   rR   rT   Seriesto_arraylistrW    r   r   <module>rs      s{                         7 7 7 7 7 7 a\	87LMMM' ' NM' 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  .  	ibi+++,,ibi)))**ibi***++
1 	#"	 	 	 	 	 W,,..WW,,..
 	#"     

q

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



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