Answers for "I want to convert a df column to a lis"

8

python - convert a column in a dataframe into a list

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

pandas to list

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

Code answers related to "I want to convert a df column to a lis"

Python Answers by Framework

Browse Popular Code Answers by Language