I have a moderately large xlsx file (around 14 MB) and OpenOffice hangs trying to open it. I was trying to use openpyxl to read the content, following this tutorial. The code sn
Use the sheetnames property:
sheetnames Returns the list of the names of worksheets in this workbook. Names are returned in the worksheets order. Type: list of strings
sheetnames
Returns the list of the names of worksheets in this workbook.
Names are returned in the worksheets order.
Type: list of strings
print (wb.sheetnames)
You can also get worksheet objects from wb.worksheets:
wb.worksheets
ws = wb.worksheets[0]