Merge three columns into one list code example Example: python transform two columns to a list combine df["pair_var"] = df[["var_1", "var_2"]].values.tolist()