combine_two_datas.py 347 B

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