def _copy_with_exclude_idx(records, tgtidx):
    """
    generate a new list of records without the target idx: tgtidx
    
    Arguments:
            records {[list of list]} -- [original records]
            tgtidx {[int]} -- [target idx will be excluded from records]
    
    Returns:
            [list of list] -- [copy of records excluding the tgtidx record]
    """

    return [record for idx, record in enumerate(records) if idx != tgtidx]