📌  相关文章
📜  数据框列表值更改为字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:38.825000             🧑  作者: Mango

代码示例2
df['liststring'] = [','.join(map(str, l)) for l in df['lists']]
df

                lists    liststring
0  [1, 2, 12, 6, ABC]  1,2,12,6,ABC
1     [1000, 4, z, a]    1000,4,z,a