can we give coditon inside dataframe merge pandas while merging code example
Example 1: combining 2 dataframes pandas
df_3 = pd.concat([df_1, df_2])
Example 2: combine df columns python
df["period"] = df["Year"] + df["quarter"]
df_3 = pd.concat([df_1, df_2])
df["period"] = df["Year"] + df["quarter"]