pandas mege code example
Example 1: python dataframe left join
>>> left.merge(right, on='user_id', how='left')
Example 2: combine df columns python
df["period"] = df["Year"] + df["quarter"]
>>> left.merge(right, on='user_id', how='left')
df["period"] = df["Year"] + df["quarter"]