1 df = pd.DataFrame({'A':df.A.repeat(df.B.str.len()),'B':np.concatenate(df.B.values)}) 转载于:https://www.cnblogs.com/Tw1st-Fate/p/11318552.html