Answers for "get data frame column into a 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 "get data frame column into a list"

Python Answers by Framework

Browse Popular Code Answers by Language