Libraries, speed & errors

xlsxwriter

Fast, richly formatted new workbooks with xlsxwriter.

The xlsxwriter model: create formats up front, write rows once in order, add charts and conditional formats, then close — it creates files but never edits them.The xlsxwriter model: create formats up front, write rows once in order, add charts and conditional formats, then close — it creates files but never edits them.write once, fast, and fully formattedadd_format()bold · moneydefined oncewrite rowsin orderconstant_memoryclose()charts · rulesnew files only

Start with the full guides

The long-form treatment of xlsxwriter, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

Compare the options

Which tool or approach to pick, and why.

When it breaks

The errors this topic produces, with the cause explained rather than just the fix.

Follow it through a track

Prefer an ordered route? These tracks cover xlsxwriter along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

xlsxwriter is part of Libraries, speed & errors.