o
    d                  
   @   sF  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d	d
 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ejdddeejdddeejdddedgdd 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.d0 ejd1d2e d.d*e d/d3gd4d dd5d6 Z#ej$d.ej%dej" gZ&ejejd7d8 e d7d9ejd7d2ge& dd:d; Z'eje d<d*ejd=d0 ed>ge& dd?d@ Z(eje dAd)ejdAd' ejdAd'ge& ddBdC Z)ejeej*e	j+eje,gdDd ddEdF Z-dS )G    N)Index
RangeIndex)expressionsTi@B numexprpython)autouseparamsidsc                 c   s"    t j}| jt _| jV  |t _d S N)expr_MIN_ELEMENTSparam)requestr    r   e/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/pandas/tests/arithmetic/conftest.pyswitch_numexpr_min_elements   s
   
r      dtype)r   c                 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   r   r   r   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>2   s    r    c                 C   s    g | ]}|d gd t jdqS )       r   r   )r   r   )r   r   r   r   r   r    7   s     c                 C   s   g | ]	}t jd |dqS )r   r   )r   array)r   r   r   r   r   r    8   s    r!   )r   g        r!   c                 C   r   )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#   r   r   r   r   c                 C   
   t | jS r
   type__name__xr   r   r   <lambda>`      
 r*   )r   r	   c                 C   r   )z7
    Several types of numeric-dtypes Index objects
    r   r   r   r   r   numeric_idxX   s   r,   10m7sc                 C   r$   r
   r%   r(   r   r   r   r*   s   r+   c                 C   r   )zV
    Several variants of Timedelta scalars representing 10 minutes and 7 seconds.
    r   r   r   r   r   	scalar_tdm   s   r.      H   )daysz72:00:00Dhc                 C   r$   r
   r%   r(   r   r   r   r*      r+   c                 C   r   )za
    Several timedelta-like and DateOffset objects that each represent
    a 3-day timedelta
    r   r   r   r   r   
three_days|      r4      x   )hoursi   )secondsmc                 C   r$   r
   r%   r(   r   r   r   r*      r+   c                 C   r   )zb
    Several timedelta-like and DateOffset objects that each represent
    a 2-hour timedelta
    r   r   r   r   r   	two_hours   r5   r;      )minutessc                 C   r   )zp
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Hourly frequencies.
    r   r   r   r   r   
not_hourly      r?         z23:00:00c                 C   r   )zo
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Daily frequencies.
    r   r   r   r   r   	not_daily   r@   rC   im  c                 C   r   )z{
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Monthly or Annual frequencies.
    r   r   r   r   r   mismatched_freq   r@   rD   c                 C   r   r
   )r'   r(   r   r   r   r*      s    c                 C   r   )zc
    Fixture to test behavior for Index, Series, tm.to_array, numpy Array and list
    classes
    r   r   r   r   r   box_1d_array   s   rE   ).numpyr   pytestpandaspdr   r   pandas._testing_testingtmpandas.core.computationr   r   fixturer   r"   r   r   zerosextendr   r   r#   aranger,   	Timedeltato_pytimedeltato_timedelta64r.   offsetsDayHourtimedelta64r4   Minuter;   	YearBegin
MonthBegin_common_mismatchr?   rC   rD   Seriesto_arraylistrE   r   r   r   r   <module>   s    

 
















	








