import os import pandas as pd from utils.file.trans_methods import read_file_to_df def combine_two_datas(path): for file in os.listdir(path): read_file = os.path.join(path, file) df = read_file_to_df(read_file) other_file = read_file.replace("second", "second_1").replace("新艾里-2024021", "新艾里-2024021_1")