I have a pandas DataFrame with numpy arrays as values in a column. I would like to turn each element to a row with the same date:
My DataFrame looks like this:
date website+
0 2014-11-26 [A]
238 2015-12-20 [B, C]
297 2016-02-17 [D]
303 2016-02-23 [E, F, G]
And I want:
date website+
0 2014-11-26 [A]
238 2015-12-20 [B]
2015-12-20 [C]
297 2016-02-17 [D]
303 2016-02-23 [E]
2016-02-23 [F]
2016-02-23 [G]
The index is not important as long as the date stays the same. I have found a solution to turn each entry into a column, but thats not exactly what I want.