I have the following situation: I have a dataframe with an 'id' and 'array' as the schema. Now I want to get for each array, all lists of pairs with the corresponding id and save it again in a dataframe. So for example:
This is the original dataframe:
+---+----------+
| id|candidates|
+---+----------+
| 1| [2, 3]|
| 2| [3]|
+---+----------+
And that is how it have to look like after the computation:
+---+---+
|id1|id2|
+---+---+
| 1| 2|
| 1| 3|
| 2| 3|
+---+---+
Maybe someone has an idea for this problem?