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

8

python - convert a column in a dataframe into a list

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

get dataframe column into a list

df_gearME = pd.read_excel('Gear M&Es.xlsx')
df_gearME['ColA'].to_list()
Posted by: Guest on July-21-2020

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

Python Answers by Framework

Browse Popular Code Answers by Language