python transform two columns to a list combine

30

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

Comments

Submit
0 Comments