o
    �¨ÊhT
  ã                   @   sx   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d„ƒZ	ejdd„ ƒZ
ejdd	„ ƒZejd
d„ ƒZejdd„ ƒZdS )é    N)Ú	DataFrameÚIndexÚNaTÚ
date_rangeÚreturnc                   C   s2   t tj d¡ d¡ttdƒtd�tdd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   r   úM/var/www/html/env/lib/python3.10/site-packages/pandas/tests/frame/conftest.pyÚdatetime_frame   s
   ýr   c                  C   sJ   t tj d¡ d¡tdd„ tdƒD ƒtd�ttdƒtd�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                 S   ó   g | ]}d |› �‘qS ©Úfoo_r   ©Ú.0Úir   r   r   Ú
<listcomp>#   ó    z&float_string_frame.<locals>.<listcomp>r   r   r
   )r   r   ÚbarÚfoo)	r   r   r   r   r   r   Úranger   r   ©Údfr   r   r   Úfloat_string_frame   s   ýr)   c                  C   sP   t dd„ ttdƒg d¢ƒD ƒtdd„ tdƒD ƒtd�d	�} | d
  d¡| d
< | S )z|
    Fixture for DataFrame of different float types with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].
    c                 S   s(   i | ]\}}|t j d ¡jd|d�“qS )r   r   r   )r   r   r   ©r    Úcolr   r   r   r   Ú
<dictcomp>2   s    ÿÿz%mixed_float_frame.<locals>.<dictcomp>r
   )Úfloat32r-   r-   Úfloat64c                 S   r   r   r   r   r   r   r   r"   8   r#   z%mixed_float_frame.<locals>.<listcomp>r   r   ©r   ÚCÚfloat16)r   Úzipr   r   r&   r   Úastyper'   r   r   r   Úmixed_float_frame*   s   ÿþù
r4   c                   C   s:   t dd„ ttdƒg d¢ƒD ƒtdd„ tdƒD ƒtd�d	�S )
zz
    Fixture for DataFrame of different int types with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].
    c                 S   s    i | ]\}}|t jd |d�“qS )r   r   )r   Úonesr*   r   r   r   r,   G   s    ÿÿz#mixed_int_frame.<locals>.<dictcomp>r
   )Úint32Úuint64Úuint8Úint64c                 S   r   r   r   r   r   r   r   r"   K   r#   z#mixed_int_frame.<locals>.<listcomp>r   r   r/   )r   r2   r   r   r&   r   r   r   r   r   Úmixed_int_frame?   s   þûr:   c                  C   sD   t tddd�tdddd�td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   r0   )é   r@   )r@   r   )r   r   r   Úilocr'   r   r   r   Útimezone_frameO   s   
ýÿ

rB   )Únumpyr   ÚpytestÚpandasr   r   r   r   Úfixturer   r)   r4   r:   rB   r   r   r   r   Ú<module>   s    


