Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a separate dataframe with the columns

data = [df1["A"], df2["A"]]
headers = ["df1", "df2"]
df3 = pd.concat(data, axis=1, keys=headers)
 
PREVIOUS NEXT
Tagged: #create #separate #dataframe #columns
ADD COMMENT
Topic
Name
1+3 =