piel.base.experimental.measurements.data.experiment
===================================================

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


Functions
---------

.. autoapisummary::

   piel.base.experimental.measurements.data.experiment.index_experiment_data


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

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

   Indexes the data attribute of an ExperimentData instance based on an integer, slice, or pandas DataFrame.
   Returns a new ExperimentData instance with the indexed data, preserving all other attributes.

   If a pandas DataFrame is provided, it extracts the corresponding indices and uses them to index the data.

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

   :returns: A new ExperimentData instance with the indexed data.


