combining rows along common columns in pandas code example
Example 1: combining 2 dataframes pandas
df_3 = pd.concat([df_1, df_2])
Example 2: combine column in csv python pandas
df['period'] = df[['Year', 'quarter', ...]].agg('-'.join, axis=1)
df_3 = pd.concat([df_1, df_2])
df['period'] = df[['Year', 'quarter', ...]].agg('-'.join, axis=1)