UUIDArrowScalar

final class lsst.daf.butler.arrow_utils.UUIDArrowScalar

Bases: ExtensionScalar

An Arrow scalar type for uuid.UUID.

Use the standard as_py method to convert to an actual uuid.UUID instance.

Methods Summary

as_py(self, *[, maps_as_pydicts])

Return this scalar as a Python object.

Methods Documentation

as_py(self, *, maps_as_pydicts=None)

Return this scalar as a Python object.

Parameters:
maps_as_pydictsstr, optional, default None

Valid values are None, ‘lossy’, or ‘strict’. The default behavior (None), is to convert Arrow Map arrays to Python association lists (list-of-tuples) in the same order as the Arrow Map, as in [(key1, value1), (key2, value2), …].

If ‘lossy’ or ‘strict’, convert Arrow Map arrays to native Python dicts.

If ‘lossy’, whenever duplicate keys are detected, a warning will be printed. The last seen value of a duplicate key will be in the Python dictionary. If ‘strict’, this instead results in an exception being raised when detected.