how to merge on multiple columns and common columns pandas code example
Example: combine column in csv python pandas
df['period'] = df[['Year', 'quarter', ...]].agg('-'.join, axis=1)
df['period'] = df[['Year', 'quarter', ...]].agg('-'.join, axis=1)