def de_duplicate ( items ) : result = [ ] for item in items : if item not in result : result . append ( item ) return result
how to delete duplicates in a list python panda
Remove any duplicate item preserving order
def de_duplicate(items):
    """Remove any duplicate item, preserving order

    >>> de_duplicate([1, 2, 1, 2])
    [1, 2]
    """
    result = []
    for item in items:
        if item not in result:
            result.append(item)
    return result