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,241
  • 7
  • 27
  • 50

1 Answers1

1

Series has a method called tolist for this:

df['columnname'].tolist()
Andy Hayden
  • 328,850
  • 93
  • 598
  • 514
linpingta
  • 2,022
  • 1
  • 17
  • 33