
    Wh                      
   d dl Zd dlZd dlZd dlmZ d dlmZ d dl	m
Z
mZmZ d dlmZ  ej        ddd dgdd	g
          d             Z ej        d ej        dej                  g          d             Zd ej        ej        ej        fD             Ze                    d ej        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        d01                                           ej$        d0d2           ej        d0,          ge*z             d3             Z+ ej         ej$        d4d%           ej        d5*                                           ej        d6          ge*z             d7             Z, ej         ej$        d8d$           ej        d8"                                           ej        d8"          ge*z             d9             Z- ej        ej        ej.        ej/        ej        e0gd:           d;             Z1dS )<    N)
RangeIndex)Float64Index
Int64IndexUInt64Index)expressionsTmodulei@B numexprpython)autousescopeparamsidsc              #   n   K   t           j        }| j        t           _        | j        V  |t           _        d S N)expr_MIN_ELEMENTSparam)requestr   s     f/var/www/html/movieo_spanner_bot/venv/lib/python3.11/site-packages/pandas/tests/arithmetic/conftest.pyswitch_numexpr_min_elementsr      s6       &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'   5   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/    OOOwWWdVaZrz***OOOr   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
    Float64Index([nan, inf, inf, inf, inf], dtype='float64')
    r   r   s    r   zeror-   E   s    " =r   r    r$   r"   r#   c                 *    t          |           j        S r   type__name__xs    r   <lambda>r4   d       $q''" r   )r   r   c                     | j         S )z7
    Several types of numeric-dtypes Index objects
    r   r   s    r   numeric_idxr7   ]        =r   10m7sc                 *    t          |           j        S r   r/   r2   s    r   r4   r4   w   r5   r   c                     | j         S )zV
    Several variants of Timedelta scalars representing 10 minutes and 7 seconds.
    r   r   s    r   	scalar_tdr<   q   s     =r      H   )daysz72:00:00Dhc                 *    t          |           j        S r   r/   r2   s    r   r4   r4      r5   r   c                     | j         S )za
    Several timedelta-like and DateOffset objects that each represent
    a 3-day timedelta
    r   r   s    r   
three_daysrD            =r      x   )hoursi   )secondsmc                 *    t          |           j        S r   r/   r2   s    r   r4   r4      r5   r   c                     | j         S )zb
    Several timedelta-like and DateOffset objects that each represent
    a 2-hour timedelta
    r   r   s    r   	two_hoursrM      rE   r      )minutessc                     | j         S )zp
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Hourly frequencies.
    r   r   s    r   
not_hourlyrR      r8   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_dailyrV      r8   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_freqrX      r8   r   c                     | j         S r   )r1   r2   s    r   r4   r4      s    QZ 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_arrayr[      s     =r   )2numpyr!   pytestpandaspdr   pandas._testing_testingtmpandas.core.apir   r   r   pandas.core.computationr   r   fixturer   r+   r"   r   Indexzerosextendr#   r$   r-   aranger7   	Timedeltato_pytimedeltato_timedelta64r<   offsetsDayHourtimedelta64rD   MinuterM   	YearBegin
MonthBegin_common_mismatchrR   rV   rX   Seriesto_arraylistr[    r   r   <module>ry      s                                
 8 7 7 7 7 7 !WIx;P  ' ' ' 828ARX6667888  98,	 	Hbh1	 	 	
 OO28RX:NOOO   VVRXry"*4UVVV W W W hbht2:.../ 0 0 0 ^^^    u  . YRYq	22233
929Qg...//IBIax00011
1	 	#"     W,,..WW,,..
 	#"     

q

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



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