def columns_to_mapping(columns):
    """
    Creates a dictionary whose keys are the column names:
    stop_id,stop_code,stop_name,stop_desc,stop_lat,stop_lon,location_type,parent_station,zone_id

    And the values are the indexes where their appropriate entry lies in each csv row.
    :param columns:
    :return:
    """
    mapping = dict()
    for i in range(len(columns)):
        mapping[columns[i]] = i
    return mapping