o
    7?e                     @   s^  d dl m Z  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 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ejd'd( Zejd)d* Z dS )+    datetimeN)	DataFrameSeries)
date_range)period_range)minmaxfirstlastsummeanZsemZmedianprodvarZstdZohlcZquantilecountsizeZnunique)paramsc                 C      | j S )z:Fixture for parametrization of Grouper downsample methods.paramrequest r   _/home/www/facesmatcher.com/pyenv/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      ddd} | S )zI
    Series with date range index and random data for test purposes.
    Dc                 S   s,   t | ||d}ttjdt||dS )Nfreq   index)r   r   nprandomdefault_rngstandard_normallen)startendr    rngr   r   r   _simple_date_range_series5   s   z;simple_date_range_series.<locals>._simple_date_range_seriesNr   r   )r,   r   r   r   simple_date_range_series/   s   
r.   c                  C   r   )zK
    Series with period range index and random data for test purposes.
    r   c                 S   sr   t   dddg}t jd|td t| ||d}W d    n1 s%w   Y  ttj	d
t||dS )	N|zPeriod with BDay freqzPeriodDtype\[B\] is deprecatedignore)categoryr   r!   r"   )warningscatch_warningsjoinfilterwarningsFutureWarningr   r   r$   r%   r&   r'   r(   )r)   r*   r    msgr+   r   r   r   _simple_period_range_seriesB   s   
	z?simple_period_range_series.<locals>._simple_period_range_seriesNr-   r   )r8   r   r   r   simple_period_range_series<   s   
r9   c                   C   s   t dddS )7Fixture for parametrization of index, series and frame.     r   r   r   r   r   _index_startQ      r=   c                   C   s   t dddS )r:   r;   r<   
   r   r   r   r   r   
_index_endW   r>   r@   c                   C      dS )r:   r   r   r   r   r   r   _index_freq]      rB   c                   C   rA   )r:   Nr   r   r   r   r   _index_namec   rC   rD   c                 C   s   | ||||dS )za
    Fixture for parametrization of date_range, period_range and
    timedelta_range indexes
    )r    namer   )Z_index_factoryr=   r@   rB   rD   r   r   r   r#   i   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
    )r$   Zaranger(   r"   r   r   r   _static_valuesr   s   rF   c                   C   rA   )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_name|   s   rG   c                 C   s   t || |dS )zm
    Fixture for parametrization of Series with date_range, period_range and
    timedelta_range indexes
    )r#   rE   )r   r#   rG   rF   r   r   r   series   s   rI   c                 C   s   | dd S )zs
    Fixture for parametrization of empty Series with date_range,
    period_range and timedelta_range indexes
    Nr   r   )rI   r   r   r   empty_series_dti   s   rJ   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   rH   r   r   r   frame   s   rL   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   )rI   r#   r   r   r   empty_frame_dti   s   
rM   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_seriesrI   rL   r   r   r   series_and_frame   s
   rN   )!r   r2   numpyr$   ZpytestZpandasr   r   Zpandas.core.indexes.datetimesr   Zpandas.core.indexes.periodr   Zdownsample_methodsZupsample_methodsZseries_methodsZresample_methodsZfixturer   r   r.   r9   r=   r@   rB   rD   r#   rF   rG   rI   rJ   rL   rM   rN   r   r   r   r   <module>   sV    











	



	
	