Skip to content

How-to guides

These pages assume you know the basics from the tutorial and want to solve a specific task.

Choose XLSX or XLSB

Compatibility, speed, file size and reader support.

Writing workbooks

Sheet options, large exports, cell text rules, failures and errors.

Formatting and layout

Number formats, styles, column widths, headers, tables, conditional formats, groups.

Formulas, charts and objects

Formulas, validation, links, images, printing, charts, sparklines, slicers, pivots.

DataFrames

to_xlsx, to_xlsb and write_dataframe.

Updating workbooks

XlsxUpdater, XlsmUpdater and XlsbUpdater.

Reading workbooks

ExcelReader and the read modes.

Workbook model

load_workbook() and the openpyxl-like model.

Troubleshooting

Common errors and what to do about them.

Pick by goal

Goal Start here
Export a query result Streaming
Make a polished report Formatting and layout
Add a chart or table Formulas, charts and objects
Refresh a template Updating workbooks
Read values fast Reading workbooks
Edit an existing file Workbook model
Use pandas or polars DataFrames