As title says, I'm having issues importing excel files that are on my computer into Python. FYI I'm relatively new at all this, so I might just outright say some things that are wrong. Anyways, I'm using Pycharm as my IDE, and this is what I've attempted thus far:
import pandas as pd
fileLocation = "C:\Users\Dcwahl\Desktop\New folder\Diego\DATA 2017"
fileName = 'data_paretos.xlsx'
data = pd.ExcelFile(fileLocation + fileName)
print(data.sheet_names)
which gives me the following error:
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Any thoughts on what I'm doing wrong? Thanks a ton.