Skip to main content
Loading page…
Python Mastery
Chapter 49
Lesson 1 of 4
Excel with openpyxl
Contents
Notes
Tutor
Concept
Why openpyxl?
Loading activity…
Previous
1 / 11
Continue
Contents
Notes
Discussion
Tutor
53 min
11 activities
0 of 11 done
In this lesson
1
Why openpyxl?
2
Reading an Existing Workbook
3
Creating a Workbook and Writing Data
4
Formatting: Fonts, Fills, and Borders
5
Building a Report Generator Function
6
Gotcha: data_only and Unsaved Formulas
7
Opening a Workbook for Read-Only Value Access
8
openpyxl API Matching
9
Multiple Sheets with pandas ExcelWriter
10
openpyxl Formatting Quick Check
11
Senior Lab: Build, Run, and Review Evidence
Objectives
Learner can install openpyxl and open existing .xlsx files with load_workbook
Learner can create new workbooks, navigate sheets, and read/write cells and rows
Learner can write Excel formulas and apply font/fill/border formatting
Learner can build a styled report generator from Python data
Learner can use pandas.to_excel for bulk data export
Further reading
openpyxl documentation
python-docx documentation
pypdf documentation
Pillow documentation
Chapter 49 · Automating Excel, Word, PDF & Images
Excel with openpyxl
Word & PDF
Images with Pillow
An Office-Automation Tool
Previous: Beyond Tkinter
Next: Word & PDF