DeprecationWarning: Call to deprecated function get_sheet_names (Use wb.sheetnames). excel_document.get_sheet_names()

205 views
Skip to first unread message

Rohit Gupta

unread,
Jun 29, 2018, 10:52:21 PM6/29/18
to python-excel
Getting Error while running the code.

import openpyxl
excel_document = openpyxl.load_workbook('/home/rohit/Desktop/sample.xlsx')
print type(excel_document)
excel_document.get_sheet_names()
print(excel_document)
Reply all
Reply to author
Forward
0 new messages