
    bMhA                     v   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          ej        j        g          dg          d             Z ej         ej        d ej        d          ej        j        g          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    \/var/www/html/test/jupyter/venv/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   ]   s     =r   )r2   T)r4   T)r4   Fc                     | j         S )z2engine and raw keyword arguments for rolling.applyr
   r   s    r   engine_and_rawr8   h   s     =r   z1 day)daysDc                     | j         S )z2Halflife argument for EWM when times is specified.r
   r   s    r   halflife_with_timesr<   v   r   r   c            
         t           j                            d                              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default_rngstandard_normalarangenanr   r   r   )arrlocsseriess      r   rO   rO   |   ss     )


"
"
2
23
7
7C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>   )r?   
   rB   r#   r?   rC   rE   )r   rG   rH   rI   rJ   r   r    r   r   framerS      sX     
	a  00;;(4A..<<<   r   )Nr#   r>      rQ   c                     | j         S )z4step keyword argument for rolling window operations.r
   r   s    r   steprV      r   r   )#r   r   numpyrG   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_nomark
single_cpur6   r8   timedelta64r<   rO   rS   rV   rR   r   r   <module>rc      s
         
      ) ) ) ) ) ) ) ) )          e}%%%  &%
        e}%%%  &% ay!!!  "! e}%%%  &% w   
 v  
 e}%%%  &%
 e}%%%  &%
 e}%%%  &%
 W]R]7%;%;V[=S$TUUU    
 MBM'$:$:FK<R#S	
 	
 	
 	    
 !2!2!2NBN1c4J4JKLLL  ML
       ***+++  ,+  r   