'Vfit ddlmZddlmZmZddlZddlmZddl m Z ddl m Z m Z ddlmZddlZerddlmZddlZdd lmZdd ZddZe jddfddZdS)) annotations) TYPE_CHECKINGLiteralN)using_string_dtype)lib)pa_version_under18p0pa_version_under19p0)import_optional_dependency)Callable) DtypeBackendreturndictc0td}|tj|tj|tj|tj | tj | tj |tj|tj|tj|tj|tj|tj|tj|tjiS)Npyarrow)r int8pd Int8Dtypeint16 Int16Dtypeint32 Int32Dtypeint64 Int64Dtypeuint8 UInt8Dtypeuint16 UInt16Dtypeuint32 UInt32Dtypeuint64 UInt64Dtypebool_ BooleanDtypestring StringDtypefloat32 Float32Dtypefloat64 Float64Dtype large_string)pas >c:\PYTHON\DbComparer\venv\Lib\site-packages\pandas/io/_util.py_arrow_dtype_mappingr-s7 #I . .B  2<>>  BMOO  BMOO  BMOO  BMOO R^%% R^%% R^%%  BO%% R^%% bo'' bo'' R^%% 2>++ r cltd}|tjtj|tjtji}ts4tjtj||<|j S)Nr)na_value) r r$rr%npnanr*r string_viewget)r+mappings r,_arrow_string_types_mapperr61s #I . .B R^RV444 2>26:::G D$&NBF$C$C$C  ! ;r.Ftable pyarrow.Table dtype_backend/DtypeBackend | Literal['numpy'] | lib.NoDefault null_to_int64boolto_pandas_kwargs dict | None pd.DataFramec|i}td}|dkr@t}|r(tj||<|j}nX|dkr tj}nEtrtrt}n!d}n|tj us|dkrd}nt|j dd|i|}|S)Nrnumpy_nullablenumpy types_mapper)r r-rrnullr4 ArrowDtyperr r6r no_defaultNotImplementedError to_pandas)r7r9r;r=r+r5rCdfs r,arrow_table_to_pandasrK>s  #I . .B(((&((  1"$GBGGII { ) # #}   "  577LLLL #. ( (MW,D,D !!  G Gl G6F G GB Ir.)r r)r r ) r7r8r9r:r;r<r=r>r r?) __future__rtypingrrrBr1pandas._configr pandas._libsr pandas.compatrr pandas.compat._optionalr pandasrcollections.abcr rpandas._typingr r-r6rGrKrDr.r,rUsH"""""" ------?>>>>>,((((((NNN++++++(    FI^$(       r.