0

I have a dataframe with a single column of numbers. I want to convert this one column dataframe into a list. What is the easiest way to do this?

Gary Sharpe
  • 2,369
  • 8
  • 30
  • 51

1 Answers1

1

Series has a method called tolist for this:

df['columnname'].tolist()
Andy Hayden
  • 359,921
  • 101
  • 625
  • 535
linpingta
  • 2,324
  • 2
  • 18
  • 36