def replicate_idx(head):
    """Return a list of indices representing replicate groups"""
    h = head
    g = h.groupby(['Sample Name', 'Measurement day'])
    idx = [i[1].index for i in g]
    return(idx)