o
    EÜh•  ã                   @   sf  d dl Zd dlZd dlZd dlmZ ej de 	d¡dfe 	d¡dfe 	d¡d	fe 	d
¡dfe 	d¡dfe 	d¡dfe 	d¡dfe 	d¡dfe 	d¡dfe 	d¡dfe 	d¡dfe 	d¡dfe 
dg¡j	dfe 
d g¡ d¡j	dfe dg¡dfe 	d ¡dfg¡d!d"„ ƒZej d#g d$i d%g‘d&i dg‘di d	g‘di dg‘di dg‘di dg‘di dg‘d
i dg‘di dg‘di dg‘di dg‘di dg‘di dg‘d'i dg‘d(i d)g‘g d*¢‘g d+¢‘g d,¢‘g d-¢‘d.i d/g‘d0i d1g‘d2d3did4g‘d2d3d5id6g‘d2d3d7id8g‘d2d3d9idg‘d2d9d:d;œd<g‘g d=¢‘g d>¢‘g d?¢‘g d@¢‘dAdBdCdDœdEg‘¡dFdG„ ƒZdS )Hé    N©Údtype_to_arrow_c_fmtzpandas_dtype, c_stringÚboolÚbZint8ÚcZuint8ÚCZint16ÚsZuint16ÚSZint32ÚiZuint32ÚIZint64ÚlZuint64ÚLZfloat16ÚeZfloat32ÚfZfloat64ÚgÚaÚuzdatetime64[ns]ztsn:ÚOc                 C   s   t | ƒ|ksJ ‚dS )z/Test ``dtype_to_arrow_c_fmt`` utility function.Nr   )Zpandas_dtypeÚc_string© r   úClib/python3.10/site-packages/pandas/tests/interchange/test_utils.pyÚtest_dtype_to_arrow_c_fmt   s   r   zpa_dtype, args_kwargs, c_stringZnullÚnZbool_ÚstringZbinaryÚz)Útime32©r   Ztts)r   ©ÚmsZttm)Útime64©ÚusZttu)r   ©ÚnsZttnZdate32ZtdDZdate64ZtdmZ	timestampÚunitztss:r   ztsm:r!   ztsu:r#   ZUTC)r$   Ztzztsn:UTC)Údurationr   ZtDs)r%   r   ZtDm)r%   r    ZtDu)r%   r"   ZtDnZ
decimal128é   é   )Z	precisionZscalezd:4,2c                 C   sh   t  d¡}|st|| ƒƒ }nt|tƒrt|| ƒ|Ž }n
t|| ƒdi |¤Ž}t |¡}t|ƒ|ks2J ‚d S )NZpyarrowr   )ÚpytestZimportorskipÚgetattrÚ
isinstanceÚtupleÚpdZ
ArrowDtyper   )Zpa_dtypeZargs_kwargsr   ÚpaZpa_typeZ
arrow_typer   r   r   Ú$test_dtype_to_arrow_c_fmt_arrowdtype+   s   
&

r.   )ZnumpyZnpr(   Zpandasr,   Zpandas.core.interchange.utilsr   ZmarkZparametrizeZdtypeZSeriesZastypeZCategoricalDtyper   r.   r   r   r   r   Ú<module>   s¼    	þíþ
ÿþýüûúùø	÷
öõôóòñðïîíìëêéèçæåäãâáþ$