Search
 
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
Name
7+1 =