uproot.STLMap
Defined in uproot.containers on line 1488.
Inheritance order: |
|---|
|
- class uproot.containers.STLMap(keys, values)
- Parameters:
keys (
numpy.ndarrayor iterable) – Keys of thestd::map.values (
numpy.ndarrayor iterable) – Values of thestd::map.
Representation of a C++
std::mapas a PythonMapping.The
keysandvaluesmust have the same length.
from_mapping
- classmethod STLMap.from_mapping(mapping)
Construct a uproot.STLMap from a Python object with
keys()andvalues().
keys
- STLMap.keys()
Keys of the
std::mapas anumpy.ndarray.
values
- STLMap.values()
Values of the
std::mapas anumpy.ndarray.
items
- STLMap.items()
Key, value pairs of the
std::mapas anumpy.ndarray.
get
- STLMap.get(where, default=None)
Get with a default, like dict.get.
tolist
Inherited from uproot.containers.Container.
- STLMap.tolist()
Convert the data this collection contains into nested lists, sets, and dicts.