Module dtype

Module dtype 

Source
Expand description

Data type parsing and conversion utilities for Zarr arrays

Handles conversion between Zarr dtype strings and Arrow DataTypes.

Functions§

parse_v2_dtype
Parse Zarr v2 numpy dtype string to normalized type name Examples: “<i8” -> “int64”, “<f4” -> “float32”, “|b1” -> “bool”
zarr_dtype_to_arrow
Convert Zarr dtype string to Arrow DataType
zarr_dtype_to_arrow_dictionary
Convert Zarr dtype to Arrow Dictionary type for coordinates Uses Int16 keys (supports up to 32K unique values) with the value type from Zarr