knapply
11/6/2018 - 8:49 PM

Python unique

Python unique

py_list = [3, 1, 2, 2, 3, 1]

result = list(set(py_list))

print(result)
#> [1, 2, 3]             Note: results are sorted as `set()` returns an ordered `set`.