python transform two columns to a list combine

Solutions on MaxInterview for python transform two columns to a list combine by the best coders in the world

showing results for - "python transform two columns to a list combine"
Tomas
23 Jan 2020
1df["pair_var"] = df[["var_1", "var_2"]].values.tolist()