o
    _~#g;                     @   s   d dl Z d dlZd dlZd dlmZmZmZ dd Zdd Z	dd Z
ejd	d
 e e e	 D ddd Zeje ddd Zeje e e	 ddd Zejd dgddd ZdS )    N)	DataFrameSeriesnotnac                   C   s~   t tjddt tjgd t dgd t tdddt tdt tjdtjddgt tjdtjddgt tjdtjddggS )	Na)dtypename   g      ?r   g       @g      @)r   npfloat64nanrange r   r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/window/moments/conftest.pycreate_series   s   
r   c                   C   s:   t ddgdt tddg ddgdd t D  S )Nr   )columns   )r      )r   r   c   c                 S   s   g | ]}t |qS r   )r   ).0sr   r   r   
<listcomp>   s    z%create_dataframes.<locals>.<listcomp>)r   r
   arangereshaper   r   r   r   r   create_dataframes   s
   r   c                 C   s$   | j d}tt|t| dkS )NK   )valuesravellensetr   )xr   r   r   r   is_constant!   s   r"   c                 c   s    | ]	}t |r|V  qd S N)r"   )r   objr   r   r   	<genexpr>'   s    
r%   )paramsc                 C      | j S r#   paramrequestr   r   r   consistent_data&   s   r,   c                 C   r'   r#   r(   r*   r   r   r   series_data1      r-   c                 C   r'   )a0  
    Test:
        - Empty Series / DataFrame
        - All NaN
        - All consistent value
        - Monotonically decreasing
        - Monotonically increasing
        - Monotonically consistent with NaNs
        - Monotonically increasing with NaNs
        - Monotonically decreasing with NaNs
    r(   r*   r   r   r   all_data6   s   r/      c                 C   r'   r#   r(   r*   r   r   r   min_periodsF   r.   r1   )	itertoolsnumpyr
   pytestpandasr   r   r   r   r   r"   fixturechainr,   r-   r/   r1   r   r   r   r   <module>   s&    


