# Writing the Report: Charts and Tables on a Web Page

A report someone else reads is a web page, so the script saves each chart as a PNG with savefig and closes it, turns tables into HTML with to_html, builds the page with an f-string, and writes it into a folder of its own for each week, ready to open in any browser.

![Cheat sheet: Writing the Report: Charts and Tables on a Web Page](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/4d21048dec2d43d787dcb52d367e707f.webp)

- Category: Data Analysis
- Level: Journeyman
- Tags: f-string, html, python, savefig(), scheduled-task, to_html()
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/data-writing-the-report-cheat-sheet
