piel.base.experimental.experiment
=================================

.. py:module:: piel.base.experimental.experiment


Functions
---------

.. autoapisummary::

   piel.base.experimental.experiment.index_experiment


Module Contents
---------------

.. py:function:: index_experiment(instance, index: Union[int, slice, pandas.DataFrame])

   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.

   :param instance: The Experiment instance to index.
   :param index: An integer index, slice, or pandas DataFrame specifying the subset.

   :returns: A new Experiment instance with the indexed attributes.


