xpressinsight.AppInterface.capture
xpressinsight.AppInterface.capture(self, entities: Union[Iterable[str], Iterable[EntityBase]] = None, *, entity_filter: Callable[[Entity], bool] = None) -> None
entities
|
The entities to be captured. May be specified as a list of entity names or entity objects. If names are specified, columns can be identified using the pattern
"<frame_name>.<col_name>" or by using their entity names (by default
"<frame_name>_<col_name>"). If a DataFrame is specified, then we will capture all columns in the frame declared with either
manage=RESULT or
update_after_execution=True.
|
entity_filter
|
If specified, the given function will be called for each
Entity and that entity will be captured if the function returned
True.
|
This function may raise the following errors:
>>> import xpressinsight as xi ... ... @xi.AppConfig("My App") ... class InsightApp(xi.AppBase): ... @xi.ExecModeLoad() ... def load(self): ... self.insight.capture(['profit', 'factories_frame'])
>>> import xpressinsight as xi ... ... @xi.AppConfig("My App") ... class InsightApp(xi.AppBase): ... @xi.ExecModeLoad() ... def load(self): ... self.insight.capture( ... entity_filter=lambda e: e.entity_name.startswith('factor'))
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.