For a dataframe such as this:
| Col1 | Col2 | |
|---|---|---|
| 1 | A | D |
| 2 | B | A |
| 3 | C | B |
Desired outcome:
Unique occurrences of values in Col1 and Col2 in order of appearance by row
i.e. unique_list = [A, D, B, C]
Problem
Way to minimise iteration and processing due to number and size of dataframes