Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python transform two columns to a list combine
Nurul Amalina Abu Bakar
Programming language:
Python
2021-05-29 03:47:39
0
Q:
python transform two columns to a list combine
Nadishan
Code:
Python
2021-07-08 01:49:40
df["pair_var"] = df[["var_1", "var_2"]].values.tolist()
0
Tags
python
list
columns
two
two columns
form
Related
split coumn of df into multiple dynamic columns
combine column in csv python pandas
dict column to be in multiple columns python
merge two columns name in one header pandas
how to merge two pandas dataframes on a column
merge two columns pandas
create dict from two columns pandas
python pandas selecting multiple columns
turn columns into one column as list python
combine df columns python
pandas merge two columns from different dataframes
python add multiple columns to pandas dataframe
pandas dataframe add two columns int and string
how to merge two column pandas
python merge strings in columns
python - join two columns and transform it as index
merge two dataframes based on column
New to Communities?
Join the community