I would like to define a strategy to generate multiple pandas columns which are row-wise unique.
For example, the following two columns would be unique, as there are no duplicates of the two columns combined, even though there are duplicates within the columns themselves.
>>> c0 c1
0 1 1
1 1 2
3 2 2
These columns, however, would not be unique in this sense:
>>> c0 c1
0 3 1
1 2 2
3 1 3
This is possible for a single column with the unique
kwarg -- however it is not obvious how to generate multiple columns that would be unique. This would be useful for generating a multiindex for example. Is there a good ready-made workaround that anyone is aware of?