def make_var_to_index(phoible):
    """
    Function that makes gives a mapping between variable/column names and list index 
    for phoible data
    :param phoible: phoible data as a list of rows (which are lists)
    :return: a dictionary {variable name: list index}
    """

    var_to_index = {}
    count = 0
    for i in phoible[0]:
        var_to_index[i] = count 
        count += 1

    return var_to_index