Add debug

This commit is contained in:
Bertrand Benjamin 2023-12-27 19:58:12 +01:00
parent 48e75358ac
commit b15b059e2a

View File

@ -1,4 +1,5 @@
import glob import glob
import logging
import pandas as pd import pandas as pd
@ -6,6 +7,7 @@ import pandas as pd
def join_excel(src, dest, file_pattern): def join_excel(src, dest, file_pattern):
"""Join every excel file in arc respecting file_pattern into on unique file in dist""" """Join every excel file in arc respecting file_pattern into on unique file in dist"""
filenames = list_files(src, file_pattern) filenames = list_files(src, file_pattern)
logging.debug(f"Concatenate {filenames}")
dfs = extract_dfs(filenames) dfs = extract_dfs(filenames)
joined_df = pd.concat(dfs) joined_df = pd.concat(dfs)
joined_df.to_excel(dest, index=False) joined_df.to_excel(dest, index=False)