Answers for "how to convert a pandas dataframe column to a list"

10

python - convert a column in a dataframe into a list

myvar_list = df["myvar"].tolist()
Posted by: Guest on September-01-2020
12

how to convert dataframe to list in python

df.values.tolist()
Posted by: Guest on April-18-2020

Code answers related to "how to convert a pandas dataframe column to a list"

Python Answers by Framework

Browse Popular Code Answers by Language