# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python [default]
#     language: python
#     name: python3
# ---

# + active=""
# merge dataframe by columns using index
# -

import pandas as pd

df = pd.DataFrame([[1, 3], [2, 4]], columns=['A', 'B'])
df

df2 = pd.DataFrame([[1, 5], [1, 6]], columns=['A', 'D'])
df2

pd.concat([df, df2], axis=1)



StarcoderdataJupyterScriptsDedupFiltered