Answers for "how to convert dataframe column into list in python"

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 dataframe column into list in python"

Python Answers by Framework

Browse Popular Code Answers by Language