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?
Asked
Active
Viewed 137 times
0
-
Why would you want to do this? – Andy Hayden Mar 03 '14 at 06:20
1 Answers
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