Answers for "column to list"

10

python - convert a column in a dataframe into a list

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

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
0

excel transform column to list

Copy the column in Excel.
Open Word.
"Paste special" as text only.
Select the data in Word (the one that you need to convert to text separated with , ), press Ctrl - H (Find & replace)
In "Find what" box type ^p.
In "Replace with" box type ,
Select "Replace all"
Posted by: Guest on April-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language