uproot.STLMap
Defined in uproot.containers on line 1850.
Inheritance order: |
---|
|
- class uproot.containers.STLMap(keys, values)
- Parameters:
keys (
numpy.ndarray
or iterable) – Keys of thestd::map
.values (
numpy.ndarray
or iterable) – Values of thestd::map
.
Representation of a C++
std::map
as a PythonMapping
.The
keys
andvalues
must 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::map
as anumpy.ndarray
.
values
- STLMap.values()
Values of the
std::map
as anumpy.ndarray
.
items
- STLMap.items()
Key, value pairs of the
std::map
as 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.