
    OwgT
                         d dl Zd dlZd dlmZmZmZmZ ej                  defd       Z	ej                  d        Z
ej                  d        Zej                  d        Zej                  d        Zy)	    N)	DataFrameIndexNaT
date_rangereturnc            	          t        t        j                  j                  d      j	                  d      t        t        d      t              t        ddd      	      S )
zb
    Fixture for DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']
       )d      ABCDdtypez
2000-01-01r
   B)periodsfreq)columnsindex)	r   nprandomdefault_rngstandard_normalr   listobjectr        R/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/frame/conftest.pydatetime_framer      sH     
		a 00:d6l&1s= r   c            
         t        t        j                  j                  d      j	                  d      t        t        d      D  cg c]  } d|  	 c} t              t        t        d      t                    }d|d	<   |S c c} w )
z
    Fixture for DataFrame of floats and strings with index of unique strings

    Columns are ['A', 'B', 'C', 'D', 'foo'].
    r	   )   r   r   foo_r   r   )r   r   barfoo)	r   r   r   r   r   r   ranger   r   )idfs     r   float_string_framer&      sm     

		a 009r3AtA3Z36Bd6l&1
B
 BuII	 4s   Bc                  d   t        t        t        d      g d      D  ci c]6  \  } }| t        j                  j                  d      j	                  d|      8 c}} t        t        d      D cg c]  }d| 	 c}t                    }|d   j                  d	      |d<   |S c c}} w c c}w )
z|
    Fixture for DataFrame of different float types with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].
    r   )float32r(   r(   float64r	   r   r   r    r   Cfloat16)
r   zipr   r   r   r   r   r#   r   astype)colr   r$   r%   s       r   mixed_float_framer0   *   s     
 "VJ	
U &&q)0050AA	
 r3AtA3Z36B
B gnnY'BsGI	
 4s   ;B'
0B-c                      t        t        t        d      g d      D  ci c]  \  } }| t        j                  d|       c}} t        t        d      D cg c]  }d| 	 c}t                    S c c}} w c c}w )zz
    Fixture for DataFrame of different int types with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].
    r   )int32uint64uint8int64r   r   r    r*   )r   r-   r   r   onesr   r#   r   )r/   r   r$   s      r   mixed_int_framer7   ?   st      "$v,0UV	
U 5))	
 r3AtA3Z36B 	
 4s   "A5
A;c            	          t        t        dd      t        ddd      t        ddd      d      } t        | j                  d<   t        | j                  d	<   | S )
a  
    Fixture for DataFrame of date_range Series with different time zones

    Columns are ['A', 'B', 'C']; some entries are missing

               A                         B                         C
    0 2013-01-01 2013-01-01 00:00:00-05:00 2013-01-01 00:00:00+01:00
    1 2013-01-02                       NaT                       NaT
    2 2013-01-03 2013-01-03 00:00:00-05:00 2013-01-03 00:00:00+01:00
    20130101   )r   z
US/Eastern)r   tzCET)Ar   r+   )   r>   )r>   r	   )r   r   r   iloc)r%   s    r   timezone_framer@   O   sV     
J2JlCJe<	

B BGGDMBGGDMIr   )numpyr   pytestpandasr   r   r   r   fixturer   r&   r0   r7   r@   r   r   r   <module>rE      s       
	 
 
    (    r   