Initial upload of bennys production files

This commit is contained in:
2025-11-18 19:44:37 +00:00
parent 77b206e795
commit 3a9ce0821a
9749 changed files with 1677047 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
from __future__ import annotations
from typing import Callable
from pandas.compat._optional import import_optional_dependency
import pandas as pd
def _arrow_dtype_mapping() -> dict:
pa = import_optional_dependency("pyarrow")
return {
pa.int8(): pd.Int8Dtype(),
pa.int16(): pd.Int16Dtype(),
pa.int32(): pd.Int32Dtype(),
pa.int64(): pd.Int64Dtype(),
pa.uint8(): pd.UInt8Dtype(),
pa.uint16(): pd.UInt16Dtype(),
pa.uint32(): pd.UInt32Dtype(),
pa.uint64(): pd.UInt64Dtype(),
pa.bool_(): pd.BooleanDtype(),
pa.string(): pd.StringDtype(),
pa.float32(): pd.Float32Dtype(),
pa.float64(): pd.Float64Dtype(),
}
def arrow_string_types_mapper() -> Callable:
pa = import_optional_dependency("pyarrow")
return {
pa.string(): pd.StringDtype(storage="pyarrow_numpy"),
pa.large_string(): pd.StringDtype(storage="pyarrow_numpy"),
}.get