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 142 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
- 359,921
- 101
- 625
- 535

linpingta
- 2,324
- 2
- 18
- 36