DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python transform two columns to a list combine
df["pair_var"] = df[["var_1", "var_2"]].values.tolist()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#transform
#columns
#list
#combine
ADD COMMENT
Topic
COMMENT
Name
7+1 =
Submit