python transform two columns to a list combine

39

df["pair_var"] = df[["var_1", "var_2"]].values.tolist()

Comments

Submit
0 Comments