Answer the question
In order to leave comments, you need to log in
How to fix error when importing multiple Pandas files?
I'm trying to load multiple csv files whose names start the same using pandas. When these files are in the same folder as the code, the import succeeds:
df2 = pd.concat([pd.read_csv(f) for f in glob.glob('d_union*.csv')])
df2 = pd.concat([pd.read_csv(f) for f in glob.glob('C:\Users\gorar\Documents\work\task1\dog_2020_06_11\d_union*.csv')])
Answer the question
In order to leave comments, you need to log in
I found a solution, you need to put slashes in the other direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question