def _get_bootstrap_samples_from_indices(data, bootstrap_indices):
    """convert bootstrap indices into actual bootstrap samples.

    Args:
        data (pandas.DataFrame): original dataset.
        bootstrap_indices (list): List with numpy arrays containing positional indices
            of observations in data.

    Returns:
        list: list of DataFrames
    """
    out = [data.iloc[idx] for idx in bootstrap_indices]
    return out