turn columns into one column as list python

Solutions on MaxInterview for turn columns into one column as list python by the best coders in the world

showing results for - "turn columns into one column as list python"
Daniel
29 Jan 2017
1t['combined']= t.values.tolist()
2
3t
4Out[50]: 
5         A         B     C        D                       combined
60    hello         1  GOOD  long.kw      [hello, 1, GOOD, long.kw]
71     1.20  chipotle   NaN    bingo    [1.2, chipotle, nan, bingo]
82  various       NaN  3000   123.46  [various, nan, 3000, 123.456]