I have the following structure of a dataframe in pandas
 A      |  B    |   C    | --- Z columns
------------------------------
12,35   | x,y   | google |
115     | z     | google |
1,88,35 | x,y,w | FB     |
I want to convert it into the following format
 A   | B |   C    | --- Z columns
------------------------------
12   | x | google |
35   | y | google |
115  | z | google |
1    | x | FB     |
88   | y | FB     |
35   | w | FB     |
What'd be the best way to go about it?
The split in my case is dependent on other column while the answers in other questions just simply split a column's values
