Is there a SFrame stack equivalent in pandas dataframes? Pandas' own stack works only with levels whereas I am looking for expanding a single column at the same level as others which contains lists.
Input Dataframe: There are some more columns like user in actual dataframe
+-------+------------------+
| user | friends |
+-------+------------------+
| 1 | [2, 3, 4] |
| 2 | [5, 6] |
| 3 | [4, 5, 10, None] |
+----- -+------------------+
Output Dataframe:There are some more columns like user in actual dataframe which should get repeated similarly
+------+--------+
| user | friend |
+------+--------+
| 1 | 2 |
| 1 | 3 |
| 1 | 4 |
| 2 | 5 |
| 2 | 6 |
| 3 | 4 |
| 3 | 5 |
| 3 | 10 |
| 3 | None |
+------+--------+