3
®yb¨  ã               @   s€   d dl Zd dlZd dlZd dlmZmZ ejdd„ ƒZej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)ÚIndexÚ
MultiIndexc              C   sl   t ddddgƒ} t ddgƒ}tjdddd	d
d
gƒ}tjddddddgƒ}ddg}t| |g||g|dd�}|S )NÚfooÚbarÚbazÚquxÚoneÚtwor   é   é   é   ÚfirstÚsecondF)ÚlevelsÚcodesÚnamesÚverify_integrity)r   ÚnpÚarrayr   )Ú
major_axisÚ
minor_axisÚmajor_codesÚminor_codesÚindex_namesÚmi© r   úG/tmp/pip-install-4cy230dp/pandas/pandas/tests/indexes/multi/conftest.pyÚidx   s    r   c              C   sl   t ddddgƒ} t ddgƒ}tjddddddgƒ}tjddddddgƒ}d	d
g}t| |g||g|dd�}|S )Nr   r   r   r   r   r	   r   r
   r   r   F)r   r   r   r   )r   r   r   r   )r   r   r   r   r   r   r   r   r   Úidx_dup   s    r   c               C   s   ddgS )Nr   r   r   r   r   r   r   r   -   s    r   c               C   s
   dddgS )NÚshapeÚndimÚsizer   r   r   r   r   Úcompat_props4   s    r"   c              C   sV   d} t jtd|  ƒdg|   ƒ}t jdd| d d�}t jj||jd |gdd	d
gd�S )zQ
    Return a MultiIndex that is narrower than the display (<80 characters).
    iè  ÚaÚabcz
2000-01-01Úsr   )ÚfreqÚperiodsé	   ÚbÚdti)r   )ÚpdÚCategoricalIndexÚlistÚ
date_ranger   Úfrom_arraysr   )ÚnÚcir*   r   r   r   Únarrow_multi_index:   s    r2   c              C   sf   d} t jtd|  ƒdg|   ƒ}t jdd| d d�}||jd |||g}dd	d
ddg}t jj||d�S )zN
    Return a MultiIndex that is wider than the display (>80 characters).
    iè  r#   r$   z
2000-01-01r%   r   )r&   r'   r(   r)   Zdti_1Zdti_2Zdti_3)r   )r+   r,   r-   r.   r   r   r/   )r0   r1   r*   r   r   r   r   r   Úwide_multi_indexE   s    r3   )Znumpyr   ZpytestZpandasr+   r   r   Zfixturer   r   r   r"   r2   r3   r   r   r   r   Ú<module>   s   