You can use the DataFrame's fillna
method after your concat
step - to "forward fill" the values from the first row into all the subsequent rows
df = pd.concat([df,header_df],axis=1,join='outer')
df = df.fillna(method='ffill')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…