M
M
MIKHAN_GO2020-12-15 21:54:00
Python
MIKHAN_GO, 2020-12-15 21:54:00

Unable to load table in excel, can you help?

5fd9062408ac6334769011.png
Unable to load table, seems to be a problem with load_workbook:

from openpyxl import load_workbook

wb = load_workbook('ex.xlsx')
sheet = wb.worksheets[0]
wmc = sheet.get_highest_column()
ws = wb['Лист1']
print(wmc)


Error:
FileNotFoundError: [Errno 2] No such file or directory: 'ex.xlsx'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andy_U, 2020-12-15
@MIKHAN_GO

Your current directory, judging by the last line of the terminal D:\code. There really is no such file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question