TimespanArrowScalar¶
- final class lsst.daf.butler.arrow_utils.TimespanArrowScalar¶
- Bases: - ExtensionScalar- An Arrow scalar type for - lsst.daf.butler.Timespan.- Use the standard - as_pymethod to convert to an actual timespan.- 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. 
 
- maps_as_pydictsstr, optional, default