piel.base.experimental.experiment#
Functions#
|
Indexes an Experiment instance based on an integer, slice, or pandas DataFrame. |
Module Contents#
- index_experiment(instance, index: int | slice | pandas.DataFrame)[source]#
Indexes an Experiment instance based on an integer, slice, or pandas DataFrame. Returns a new Experiment instance with the indexed subset of relevant attributes, preserving all other attributes.
- Parameters:
instance – The Experiment instance to index.
index – An integer index, slice, or pandas DataFrame specifying the subset.
- Returns:
A new Experiment instance with the indexed attributes.