def filter_rows_via_column_matching(data, column, index=0):
    """
    Filter data, by keeping rows whose particular field index matches the
    column criteria

    It takes parameters:
    data (data in the form of a list of lists)
    column (used as the match criteria for a particular field of the data)
    and optionally:
    index (by default 0, it is the data field used to match against column)

    Note that column can be many iterables, but probably ought to be a set

    It returns a filtered list of lists
    """
    return [ row for row in data if row[index] in column ]