
    d                     F   d dl m Z mZ d dlZd dlZd dlmc mZ d dl	m
Z
mZmZ  ej        ddg          d             Z ej        g d          d	             Z ej        ddg          d
             Z ej        ddg          d             Z ej        ddg          d             Z ej        dg          d             Z ej        dg          d             Z ej        ddg          d             Z ej        ddg          d             Z ej        ddg          d             Z ej         ej        d ej        d                    dg          d             Z ej         ej        d ej        d                    ddg          d             Z ej        d ed           ej        dd          g          d             Zej        d             Zej        d              Z ej        g d!          d"             Z dS )#    )datetime	timedeltaN)	DataFrameSeriesbdate_rangeTF)paramsc                     | j         S )z&raw keyword argument for rolling.applyparamrequests    X/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/tests/window/conftest.pyrawr           =    )summeanmedianmaxminvarstdkurtskewcountsemc                     | j         S Nr
   r   s    r   arithmetic_win_operatorsr      s      =r   c                     | j         S r   r
   r   s    r   centerr!   +   
    =r      c                     | j         S r   r
   r   s    r   min_periodsr%   0   r"   r   c                     | j         S )z'parallel keyword argument for numba.jitr
   r   s    r   parallelr'   5   r   r   c                     | j         S )z$nogil keyword argument for numba.jitr
   r   s    r   nogilr)   ?   r   r   c                     | j         S )z'nopython keyword argument for numba.jitr
   r   s    r   nopythonr+   E   r   r   c                     | j         S )zadjust keyword argument for ewmr
   r   s    r   adjustr-   K   r   r   c                     | j         S )z"ignore_na keyword argument for ewmr
   r   s    r   	ignore_nar/   Q   r   r   c                     | j         S )znumeric_only keyword argumentr
   r   s    r   numeric_onlyr1   W   r   r   numba)markscythonc                     | j         S )z)engine keyword argument for rolling.applyr
   r   s    r   enginer6   ]   r   r   )r2   T)r4   T)r4   Fc                     | j         S )z2engine and raw keyword arguments for rolling.applyr
   r   s    r   engine_and_rawr8   c   s     =r   z1 day)daysDc                     | j         S )z2Halflife argument for EWM when times is specified.r
   r   s    r   halflife_with_timesr<   o   r   r   c            
          t           j                            d          } t          j        dd          }t           j        | |<   t          | t          t          ddd          d                    }|S )zMake mocked series as fixture.d      (     r#   periodsindex)nprandomrandnarangeNaNr   r   r   )arrlocsseriess      r   rM   rM   u   sc     )//#

C9RDCIC{8D!Q+?+?MMMNNNFMr   c            
          t          t          j                            dd          t	          t          ddd          d                    S )zMake mocked frame as fixture.r>   
   rA   r#   rB   rD   )r   rF   rG   rH   r   r    r   r   framerQ      sJ     
	R  (4A..<<<   r   )Nr#         rO   c                     | j         S )z4step keyword argument for rolling window operations.r
   r   s    r   steprU      r   r   )!r   r   numpyrF   pytestpandas.util._test_decoratorsutil_test_decoratorstdpandasr   r   r   fixturer   r   r!   r%   r'   r)   r+   r-   r/   r1   r   
skip_if_nor6   r8   timedelta64r<   rM   rQ   rU   rP   r   r   <module>r`      s         
      ) ) ) ) ) ) ) ) )          e}%%%  &%
        e}%%%  &% ay!!!  "! e}%%%  &% w   
 v  
 e}%%%  &%
 e}%%%  &%
 e}%%%  &%
 WMBM'4J4JKKKXVWWW  XW
 _MBM',B,BCCC    
 !2!2!2NBN1c4J4JKLLL  ML
       ***+++  ,+  r   