python - convert a column in a dataframe into a list
myvar_list = df["myvar"].tolist()
python - convert a column in a dataframe into a list
myvar_list = df["myvar"].tolist()
get dataframe column into a list
df_gearME = pd.read_excel('Gear M&Es.xlsx')
df_gearME['ColA'].to_list()
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"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us