a
    é´«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ÚmeanZsemZmedianÚprodÚvarZstdZohlcZquantileÚcountÚsizeZnunique)Úparamsc                 C   s   | j S )z:Fixture for parametrization of Grouper downsample methods.©Úparam©Úrequest© r   ú]/var/www/html/laksyashrimp/venv/lib/python3.9/site-packages/pandas/tests/resample/conftest.pyÚdownsample_method    s    r   c                 C   s   | j S )z8Fixture for parametrization of Grouper resample methods.r   r   r   r   r   Úresample_method&   s    r   c                   C   s   t dddƒS )ú7Fixture for parametrization of index, series and frame.éÕ  é   r   r   r   r   r   Ú_index_start,   s    r   c                   C   s   t dddƒS )r   r   r   é
   r   r   r   r   r   Ú
_index_end2   s    r   c                   C   s   dS )r   ÚDr   r   r   r   r   Ú_index_freq8   s    r    c                   C   s   dS )r   Nr   r   r   r   r   Ú_index_name>   s    r!   c                 C   s   | ||||d�S )za
    Fixture for parametrization of date_range, period_range and
    timedelta_range indexes
    )ÚfreqÚnamer   )Z_index_factoryr   r   r    r!   r   r   r   ÚindexD   s    r$   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
    )ÚnpZarangeÚlen©r$   r   r   r   Ú_static_valuesM   s    r(   c                   C   s   dS )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    r)   c                 C   s   t || |d�S )zm
    Fixture for parametrization of Series with date_range, period_range and
    timedelta_range indexes
    )r$   r#   )r   ©r$   r)   r(   r   r   r   Úseries`   s    r+   c                 C   s   | dd… S )zs
    Fixture for parametrization of empty Series with date_range,
    period_range and timedelta_range indexes
    Nr   r   )r+   r   r   r   Úempty_series_dtii   s    r,   c                 C   s   t d|i| d�S )zp
    Fixture for parametrization of DataFrame with date_range, period_range
    and timedelta_range indexes
    Úvaluer'   )r   r*   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   r'   )r$   r   )r+   r$   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   )Zframe_or_seriesr+   r.   r   r   r   Úseries_and_frame†   s    r0   )r   Únumpyr%   ZpytestZpandasr   r   Zdownsample_methodsZupsample_methodsZseries_methodsZresample_methodsZfixturer   r   r   r   r    r!   r$   r(   r)   r+   r,   r.   r/   r0   r   r   r   r   Ú<module>   sF   









	



	
	