0

I have a table like this:

key1 | key2
---------------
0    | a, b, c
---------------
1    | d, e, f
---------------

I would like to convert it to like:

key1 | key2
------------
0    | a
------------
0    | b
------------

0    | c
------------
1    | d
------------
1    | e
------------
1    | f
------------

Any simple way in Pandas? Thanks a lot!

J. Castro
  • 151
  • 15
xman
  • 183
  • 1
  • 12

0 Answers0