I have a program which should merge multiple csv files
def merge( csv_output_path):
os.chdir("output/filtered")
all_filenames = "output/filtered/filtered.csv"
extension = "csv"
all_filenames = [i for i in glob.glob( 'output/filtered/filtered.csv')]
#combine all files in the list
all_filenames = [i for i in glob.glob('*.{}'.format(extension))]
#combine all files in the list
combined_csv = pd.concat(map([pd.read_csv(file) for file in all_filenames ]), axis=1, join='outer').sort_index()
#export to csv
combined_csv.to_csv( "MergedFiles.csv", index=False, encoding='utf-8-sig')
The code above does not join all these files by column. How can I join all these files that have only one column in common timestamps
.