Pandas assumes by default that your file is encoded in UTF-8. Your file is encoded in Windows-1252. You can tell Pandas to use this encoding by
pd.read_csv(os.path.join("Performance_Data", file), encoding='cp1252')
Detecting the encoding of a file automatically is a bit tricky, but you can use a package called "chardet". For your code, it could look like this:
import os
import chardet
import pandas as pd
df = pd.DataFrame()
for file in os.listdir("Performance_Data"):
if file.endswith(".csv"):
with open(file, "rb") as fp:
encoding = chardet.detect(fp.read())["encoding"]
df = pd.concat(
[
df,
pd.read_csv(os.path.join("Performance_Data", file), encoding=encoding),
],
axis=0,
)
df.head()
References