Pandas—合并列 # way1: 将两列合并成新的列 df["new_col"] = df["col1"] + df["col2"] # way2: 将两列合并成新的列,并在中间插入间隔符 df["new_col"] = df["col1"] + "-" + df["col2"]