DataFrame 按指定字符串拼接两列:df.concat df3 = pd.concat([df1['cosine'],df1['couple_product_id'].str.split('_', expand=True)], axis=1)