merge pandas on column code example
Example 1: merge two columns pandas
df["period"] = df["Year"] + df["quarter"]
Example 2: how to merge two column pandas
DataFrame["new_column"] = DataFrame["column1"] + DataFrame["column2"]
df["period"] = df["Year"] + df["quarter"]
DataFrame["new_column"] = DataFrame["column1"] + DataFrame["column2"]