consolidator
/
convertGuids.py
18 строк · 831.0 Байт
1import sys
2import pandas as pd
3from MainConsolidator import MainConsolidator
4
5if __name__=="__main__":
6try:
7consolidator = MainConsolidator(f"convert_.log",logStream=sys.stdout)
8# consolidator.load_guids("D:\\work\\Укрупнение\\current\\справочники2")
9# for key in consolidator.guids.keys():
10# print(f"key:{key}")
11# df:pd.DataFrame = consolidator.guids[key]
12# df.to_excel(f"D:\\work\\Укрупнение\\current\\справочники4\\{key}.xlsx",index=False)
13consolidator.load_guids_x("D:\\work\\Укрупнение\\current\\справочники4")
14for key in consolidator.guids.keys():
15print(f"key:{key}")
16print(consolidator.guids[key])
17except Exception as exp:
18print(f"error: {exp}")