def load_voting_profile(filename):
    """
    Loads a voting profile of the form:
    x,a,b,...,n
    Where x is the number of that particular kind of ballot
    and a-n are numerics corresponding with candidates
    """
    profile = []

    input_file = open(filename, 'r')

    for line in input_file:
        string_array = line.split(',')
        ranking = [int(num_str) for num_str in string_array]
        for _ in range(ranking[0]):
            profile.append(ranking[1:])

    return profile