Add debug
This commit is contained in:
parent
48e75358ac
commit
b15b059e2a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user