1 2 cols=["year","month","day"] df['date'] = df[cols].apply(lambda x: '-'.join(x.values.astype(str)), axis="columns")