o
    _~#g                     @   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/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/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    









	



	
	