Python fusionne les fichiers CSV dans le même dossier

import os, glob
import pandas as pd

os.chdir(os.path.dirname(__file__) + r"\CSVs")

extension = 'csv'
all_filenames = [i for i in glob.glob('*.{}'.format(extension))]

combined_csv = pd.concat([pd.read_csv(f) for f in all_filenames ])

os.chdir(os.path.dirname(__file__))

combined_csv.to_csv( "combined_csv.csv", index=False, encoding='utf-8-sig')
Thoughtless Tapir