o
    Û­j  ã                   @   s"  d dl m Z  d dlZd dlZd dlmZmZ g d¢ZddgZdgZ	ee e	 Z
ejed�d	d
„ ƒZeje
d�dd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd„ ƒZejdd „ ƒZejd!d"„ ƒZejd#d$„ ƒZdS )%é    ©ÚdatetimeN)Ú	DataFrameÚSeries)ÚminÚmaxÚfirstÚlastÚsumÚmeanÚsemÚmedianÚprodÚvarÚstdÚohlcÚquantileÚcountÚsizeÚnunique)Úparamsc                 C   ó   | j S )z:Fixture for parametrization of Grouper downsample methods.©Úparam©Úrequest© r   ú[/var/www/html/CropPilot/venv/lib/python3.10/site-packages/pandas/tests/resample/conftest.pyÚdownsample_method    ó   r   c                 C   r   )z8Fixture for parametrization of Grouper resample methods.r   r   r   r   r   Úresample_method&   r   r    c                   C   s   t dddƒS )ú7Fixture for parametrization of index, series and frame.éÕ  é   r   r   r   r   r   Ú_index_start,   ó   r$   c                   C   s   t dddƒS )r!   r"   r#   é
   r   r   r   r   r   Ú
_index_end2   r%   r'   c                   C   ó   dS )r!   ÚDr   r   r   r   r   Ú_index_freq8   ó   r*   c                   C   r(   )r!   Nr   r   r   r   r   Ú_index_name>   r+   r,   c                 C   s   | ||||d�S )za
    Fixture for parametrization of date_range, period_range and
    timedelta_range indexes
    )ÚfreqÚnamer   )Ú_index_factoryr$   r'   r*   r,   r   r   r   ÚindexD   s   r0   c                 C   s   t  t| ƒ¡S )z¢
    Fixture for parametrization of values used in parametrization of
    Series and DataFrames with date_range, period_range and
    timedelta_range indexes
    )ÚnpÚarangeÚlen©r0   r   r   r   Ú_static_valuesM   s   r5   c                   C   r(   )z‚
    Fixture for parametrization of Series name for Series used with
    date_range, period_range and timedelta_range indexes
    Nr   r   r   r   r   Ú_series_nameW   s   r6   c                 C   s   t || |d�S )zm
    Fixture for parametrization of Series with date_range, period_range and
    timedelta_range indexes
    )r0   r.   )r   ©r0   r6   r5   r   r   r   Úseries`   s   r8   c                 C   s   | dd… S )zs
    Fixture for parametrization of empty Series with date_range,
    period_range and timedelta_range indexes
    Nr   r   )r8   r   r   r   Úempty_series_dtii   s   r9   c                 C   s   t d|i| d�S )zp
    Fixture for parametrization of DataFrame with date_range, period_range
    and timedelta_range indexes
    Úvaluer4   )r   r7   r   r   r   Úframer   s   r;   c                 C   s   | j dd… }t|d�S )zv
    Fixture for parametrization of empty DataFrame with date_range,
    period_range and timedelta_range indexes
    Nr   r4   )r0   r   )r8   r0   r   r   r   Úempty_frame_dti|   s   
r<   c                 C   s   | t kr|S | tkr|S dS )z{
    Fixture for parametrization of Series and DataFrame with date_range,
    period_range and timedelta_range indexes
    N)r   r   )Úframe_or_seriesr8   r;   r   r   r   Úseries_and_frame†   s
   ÿr>   )r   Únumpyr1   ÚpytestÚpandasr   r   Údownsample_methodsÚupsample_methodsÚseries_methodsÚresample_methodsÚfixturer   r    r$   r'   r*   r,   r0   r5   r6   r8   r9   r;   r<   r>   r   r   r   r   Ú<module>   sH    









	



	
	