
    LVf                        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z   ez   Z ej                   e
      d        Z ej                   e
      d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Zej                   d        Z y)    datetimeN)	DataFrameSeries)
date_range)period_range)minmaxfirstlastsummeansemmedianprodvarstdohlcquantilecountsizenunique)paramsc                     | j                   S )z:Fixture for parametrization of Grouper downsample methods.paramrequests    g/var/www/html/software/conda/envs/catlas/lib/python3.12/site-packages/pandas/tests/resample/conftest.pydownsample_methodr    #        ==    c                     | j                   S )z8Fixture for parametrization of Grouper resample methods.r   r   s    r   resample_methodr$   )   r!   r"   c                      dd} | S )zI
    Series with date range index and random data for test purposes.
    c                     t        | ||      }t        t        j                  j	                  d      j                  t        |            |      S )Nfreq   index)r   r   nprandomdefault_rngstandard_normallen)startendr(   rngs       r   _simple_date_range_seriesz;simple_date_range_series.<locals>._simple_date_range_series5   s<    $/bii++A.>>s3xHPSTTr"   D )r4   s    r   simple_date_range_seriesr8   /   s    U %$r"   c                      dd} | S )zK
    Series with period range index and random data for test purposes.
    c                 R   t        j                         5  dj                  ddg      }t        j                  d|t               t        | ||      }d d d        t        t        j                  j                  d      j                  t                    |      S # 1 sw Y   KxY w)	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/   r0   )r1   r2   r(   msgr3   s        r   _simple_period_range_seriesz?simple_period_range_series.<locals>._simple_period_range_seriesB   s    $$& 	6((35VWXC##&
 uc5C	6 bii++A.>>s3xHPSTT	6 	6s   >BB&r5   r7   )rD   s    r   simple_period_range_seriesrE   <   s    
U '&r"   c                      t        ddd      S )7Fixture for parametrization of index, series and frame.     r   r7   r"   r   _index_startrJ   Q   s     D!Qr"   c                      t        ddd      S )rG   rH   rI   
   r   r7   r"   r   
_index_endrM   W   s     D!R  r"   c                       y)rG   r6   r7   r7   r"   r   _index_freqrO   ]   s     r"   c                       y)rG   Nr7   r7   r"   r   _index_namerQ   c   s     r"   c                      | ||||      S )za
    Fixture for parametrization of date_range, period_range and
    timedelta_range indexes
    )r(   namer7   )_index_factoryrJ   rM   rO   rQ   s        r   r+   r+   i   s     ,
;WWr"   c                 >    t        j                  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,   aranger0   r*   s    r   _static_valuesrW   r   s     99SZ  r"   c                       y)z
    Fixture for parametrization of Series name for Series used with
    date_range, period_range and timedelta_range indexes
    Nr7   r7   r"   r   _series_namerY   |   s     r"   c                     t        || |      S )zm
    Fixture for parametrization of Series with date_range, period_range and
    timedelta_range indexes
    )r+   rS   )r   r+   rY   rW   s      r   seriesr\      s     .LAAr"   c                     | dd S )zs
    Fixture for parametrization of empty Series with date_range,
    period_range and timedelta_range indexes
    Nr   r7   )r\   s    r   empty_series_dtir^      s     "1:r"   c                      t        d|i|       S )zp
    Fixture for parametrization of DataFrame with date_range, period_range
    and timedelta_range indexes
    valuer*   )r   r[   s      r   framera      s     g~.e<<r"   c                 8    | j                   dd }t        |      S )zv
    Fixture for parametrization of empty DataFrame with date_range,
    period_range and timedelta_range indexes
    Nr   r*   )r+   r   )r\   r+   s     r   empty_frame_dtirc      s     LL!E5!!r"   c                 0    | t         k(  r|S | t        k(  r|S y)z{
    Fixture for parametrization of Series and DataFrame with date_range,
    period_range and timedelta_range indexes
    N)r   r   )frame_or_seriesr\   ra   s      r   series_and_framerf      s#     & )# $r"   )!r   r>   numpyr,   pytestpandasr   r   pandas.core.indexes.datetimesr   pandas.core.indexes.periodr   downsample_methodsupsample_methodsseries_methodsresample_methodsfixturer    r$   r8   rE   rJ   rM   rO   rQ   r+   rW   rY   r\   r^   ra   rc   rf   r7   r"   r   <module>rq      s       5 3  V$ %(88>I  )* +
 '( )
 	% 	% ' '(    
 ! !
  
  
 X X ! !   B B   = = " "  r"   