I am reading in a web exported file that has some BOM  characters at the start. I was able to handle them with Pandas 0.25.0 using:
df = pd.read_csv("filepath", encoding='windows-1252', usecols=["user_id", "date", "page"])
however upgrading to pandas 1.1.0 then causes the same code to error that expected column "user_id" not found as in the newer pandas version it sees the column as "user_id".
Any ideas on workarounds as would like to use newer version of pandas?
It is different to the suggested questions so far as it is not just a case of using the utf-8-sig encoding as that throws errors and it works fine with Pandas 0.25 so something has changed in the way Pandas works in version 1.0 onwards. I just wanted to be able to not read in the BOM characters as part of the header. My answer below was on how to get around it as no one seems to know how to handle it in newer versions of Pandas. Not sure why it was downvoted when it provides the answer to my question and would help others with the same problem.