Issues with pd.read_excel

Viewed 21

I'm trying to import and excel file in Jupyter Lab. Both the excel and the jupyter are in the same directory (my desktop) but python continues to show a File not found error while try to read it. I attach my code and the error shown for the sake of clearness. Thank you in advance for anyone is able to help me fix this!

file_name='Users/gloriatuccillo/Desktop/export_linear_impacts_by_id_spotgate_date_broadcast.xlsx'
sheet_name='sheet1'
df=pd.read_excel(io=file_name, sheet_name=sheet_name)

Error displayed: FileNotFoundError: [Errno 2] No such file or directory: 'Users/gloriatuccillo/Desktop/export_linear_impacts_by_id_spotgate_date_broadcast.xlsx'

0 Answers
Related