
    bMh8
                         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dS )	    N)	DataFrameIndexNaT
date_rangereturnc            	          t          t          j                            d                              d          t          t          d                    t          ddd                    S )	zb
    Fixture for DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']
       )d      ABCDz
2000-01-01r
   B)periodsfreq)columnsindex)r   nprandomdefault_rngstandard_normalr   listr        [/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/frame/conftest.pydatetime_framer      s_     
	a  00::d6ll##s===   r   c            	         t          t          j                            d                              d          t          d t          d          D             t                    t          t          d                              } d| d	<   | S )
z
    Fixture for DataFrame of floats and strings with index of unique strings

    Columns are ['A', 'B', 'C', 'D', 'foo'].
    r	   )   r   c                     g | ]}d | S foo_r   .0is     r   
<listcomp>z&float_string_frame.<locals>.<listcomp>#       333AZAZZ333r   r   dtyper   )r   r   barfoo)	r   r   r   r   r   r   rangeobjectr   dfs    r   float_string_framer-      s     

	a  009933r3336BBBd6ll##
 
 
B
 BuIIr   c            	         t          d t          t          d          g d          D             t          d t	          d          D             t
                              } | d                             d	          | d<   | S )
z|
    Fixture for DataFrame of different float types with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].
    c                 ~    i | ]:\  }}|t           j                            d                               d|          ;S )r	   r   r%   )r   r   r   r!   colr&   s      r   
<dictcomp>z%mixed_float_frame.<locals>.<dictcomp>2   sQ     	
 	
 	
U &&q))0050AA	
 	
 	
r   r   )float32r3   r3   float64c                     g | ]}d | S r   r   r    s     r   r#   z%mixed_float_frame.<locals>.<listcomp>8   r$   r   r   r%   r   Cfloat16)r   zipr   r   r)   r*   astyper+   s    r   mixed_float_framer;   *   s     
	
 	
!VJJJ 	
 	
 	
 33r3336BBB
 
 
B gnnY''BsGIr   c            	          t          d t          t          d          g d          D             t          d t	          d          D             t
                              S )zz
    Fixture for DataFrame of different int types with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].
    c                 B    i | ]\  }}|t          j        d |          S )r   r%   )r   onesr0   s      r   r2   z#mixed_int_frame.<locals>.<dictcomp>G   s=     	
 	
 	
U 5)))	
 	
 	
r   r   )int32uint64uint8int64c                     g | ]}d | S r   r   r    s     r   r#   z#mixed_int_frame.<locals>.<listcomp>K   r$   r   r   r%   r6   )r   r9   r   r   r)   r*   r   r   r   mixed_int_framerD   ?   su     	
 	
!$v,,0U0U0UVV	
 	
 	
 33r3336BBB   r   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   r7   )   rK   )rK   r	   )r   r   r   ilocr+   s    r   timezone_framerM   O   sn     
J222JlCCCJe<<<	
 	

 
B BGDMBGDMIr   )numpyr   pytestpandasr   r   r   r   fixturer   r-   r;   rD   rM   r   r   r   <module>rR      s                    
	 
 
 
 
      (        r   