
    Mh                        S SK rS SKrS SKrS SKJr  \R                  R                  S\R                  " S5      S4\R                  " S5      S4\R                  " S5      S	4\R                  " S
5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S5      S4\R                  " S/5      R                  S4\R                  " S /5      R                  S5      R                  S4\R                  " S/5      S4\R                  " S 5      S4/5      S! 5       r\R                  R                  S"/ S#0 S$/PS%0 S/PS0 S	/PS0 S/PS0 S/PS0 S/PS0 S/PS
0 S/PS0 S/PS0 S/PS0 S/PS0 S/PS0 S/PS&0 S/PS'0 S(/P/ S)QP/ S*QP/ S+QP/ S,QPS-0 S./PS/0 S0/PS1S2S0S3/PS1S2S40S5/PS1S2S60S7/PS1S2S80S/PS1S8S9S:.S;/P/ S<QP/ S=QP/ S>QP/ S?QPS@SASBSC.SD/P5      SE 5       rg)F    Ndtype_to_arrow_c_fmtzpandas_dtype, c_stringboolbint8cuint8Cint16suint16Sint32iuint32Iint64luint64Lfloat16efloat32ffloat64gauzdatetime64[ns]ztsn:Oc                 &    [        U 5      U:X  d   eg)z/Test ``dtype_to_arrow_c_fmt`` utility function.Nr   )pandas_dtypec_strings     U/var/www/html/env/lib/python3.13/site-packages/pandas/tests/interchange/test_utils.pytest_dtype_to_arrow_c_fmtr$      s    4  -999    zpa_dtype, args_kwargs, c_stringnullnbool_stringbinaryz)time32r   tts)r,   msttm)time64usttu)r2   nsttndate32tdDdate64tdm	timestampunitztss:r0   ztsm:r4   ztsu:r7   UTC)r>   tzztsn:UTC)durationr-   tDs)rA   r/   tDm)rA   r3   tDu)rA   r6   tDn
decimal128      )	precisionscalezd:4,2c                    [         R                  " S5      nU(       d  [        X05      " 5       nO5[        U[        5      (       a  [        X05      " U6 nO[        X05      " S0 UD6n[
        R                  " U5      n[        U5      U:X  d   eg )Npyarrow )pytestimportorskipgetattr
isinstancetuplepd
ArrowDtyper   )pa_dtypeargs_kwargsr"   papa_type
arrow_types         r#   $test_dtype_to_arrow_c_fmt_arrowdtyperZ   +   st    L 
		Y	'B"')	K	'	'"'5"'6+6w'J
+x777r%   )numpynprN   pandasrS   pandas.core.interchange.utilsr   markparametrizedtypeSeriesastypeCategoricalDtyper$   rZ   rM   r%   r#   <module>re      s      > 	&	3	&	3	'	C 	'	C 	(	S!	'	C 	(	S!	'	C 	(	S!	)	c"	)	c"	)	c"	C5			%IIqcN!!"2399	
 
		cU	#S)	#'0:10:
 % 	S 	"c  
"c  
2s	 
 
2s  
2s  
S  
"c  
"c  
"c  
B  
B  
B  
2s  
2s   	"! " 	## $ 	#% & 	#' ( 
2u) * 
2u+ , 
vsmV,- . 
vtnf-/ 0 
vtnf-1 2 
vtnf-3 4 
t519=5 6 	$7 8 	%9 : 	%; < 	%= > 
Q3W=? #H
8I#H
8r%   