Panda menggabungkan kolom tertentu
df = pd.merge(df,df2[['Key_Column','Target_Column']],on='Key_Column', how='left')
Rich Ray
df = pd.merge(df,df2[['Key_Column','Target_Column']],on='Key_Column', how='left')
#suppose you have two dataframes df1 and df2, and
#you need to merge them along the column id
df_merge_col = pd.merge(df1, df2, on='id')
df["period"] = df["Year"] + df["quarter"]