1

I have a multiple lists as:-

A = [1,2,3,4,5]
B = [3,4,5,5,7]
C = [6,54,3,2,8,9,9]
D = [3,2,54,33,45,55,5]
.........so on

All I want to append this list as row into pandas dataframe df as column digits- Something as,

print (df)

digits
[1,2,3,4,5]
[3,4,5,5,7]
[6,54,3,2,8,9,9]
[3,2,54,33,45,55,5]
.............
............
Learner
  • 800
  • 1
  • 8
  • 23
  • check edited question – Learner Sep 11 '18 at 10:31
  • Why would you want to do that instead of having a nested list? Pandas is not designed for columns containing lists, it works mostly with scalar values. You lose all the benefit by doing that – roganjosh Sep 11 '18 at 10:35

0 Answers0