create a separate dataframe with the columns code example
Example: create a separate dataframe with the columns
data = [df1["A"], df2["A"]]
headers = ["df1", "df2"]
df3 = pd.concat(data, axis=1, keys=headers)
data = [df1["A"], df2["A"]]
headers = ["df1", "df2"]
df3 = pd.concat(data, axis=1, keys=headers)