📌  相关文章
📜  将列转换为一列作为列表 python 代码示例

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

代码示例1
t['combined']= t.values.tolist()

t
Out[50]: 
         A         B     C        D                       combined
0    hello         1  GOOD  long.kw      [hello, 1, GOOD, long.kw]
1     1.20  chipotle   NaN    bingo    [1.2, chipotle, nan, bingo]
2  various       NaN  3000   123.46  [various, nan, 3000, 123.456]