Reading Workbooks
Open and read Excel files.
Excel from Python
openpyxl is the standard library for reading and writing modern Excel files (the .xlsx format). It lets Python automate spreadsheet tasks that people otherwise do by hand.
This lesson focuses on opening files and reading their contents.
The Workbook Model
Excel files have a clear hierarchy that openpyxl mirrors:
- Workbook the whole file
- Worksheet one tab inside it
- Cell a single A1-style box with a value
You navigate from workbook to worksheet to cell.
All lessons in this course
- Reading Workbooks
- Writing and Styling Cells
- Formulas and Charts
- Batch Processing Reports