def card_type_finder(filename):
    """ Function to extract all unique values from a data set

    :param filename: input filename fro analysis

    card_type_finder(str) -> list
    """
    fhand = open(filename, 'r')
    types = {}
    for line in fhand:
        line1 = line.split(',')
        line2 = line1[13].split('[')
        type_u = line2[0].strip()
        if type_u not in types:
            types[type_u] = 1
        else:
            types[type_u] += 1
    fhand.close()
    print(types)
