大熊猫-从逗号分隔的字符串到行的堆栈数据

时间:2018-07-16 07:23:41

标签: python-3.x pandas

我要转换一个看起来像这样的数据框...

bookingpostcode  targetpostcode
800              800, 820, 828
810              810
812              812, 886, 810, 828

对此...

bookingpostcode  targetpostcode
800              800
800              820
800              828
810              810
812              812
812              886
812              810
812              828

0 个答案:

没有答案
相关问题