Answers for "pandas combine two columns into list"

0

python transform two columns to a list combine

df["pair_var"] = df[["var_1", "var_2"]].values.tolist()
Posted by: Guest on September-03-2020
2

merge two columns pandas

df["period"] = df["Year"] + df["quarter"]
Posted by: Guest on May-10-2020

Code answers related to "pandas combine two columns into list"

Python Answers by Framework

Browse Popular Code Answers by Language