backtest_lib.universe.universe_mapping.UniverseMapping#
- class backtest_lib.universe.universe_mapping.UniverseMapping#
Bases:
VectorMapping[str,Scalar],ABC,GenericVector mapping keyed by security identifiers.
Implementations back this interface with dense vectors aligned to a universe ordering, enabling fast arithmetic when operands share the same ordering.
- abstractmethod floor() UniverseMapping[int]#
Return a mapping with values floored to integers.
- property plot: UniverseMappingPlotAccessor#
Return the plotting accessor for the mapping.
- abstractmethod truncate() UniverseMapping[int]#
Return a mapping with values truncated to integers.