In pandas, I want to change the data format as below. In my thought, I have only idea with reading line by line with open('filename') and parse after readline. Is there any way to to this in python pandas.
From
Column A | Column B |
---|---|
A | [1,2,3] |
B | [4,5,6] |
to
Column A | Column B |
---|---|
A | 1 |
A | 2 |
A | 3 |
B | 4 |
B | 5 |
B | 6 |