how to add two dataframe row and column in python code example Example: add two column values of a datframe into one Click to copydf["period"] = df["Year"] + df["quarter"]