How to Generate an Analytics Report (pdf) in Python! @KeithGalli
How to Generate an Analytics Report (pdf) in Python!  @KeithGalli
Uploaded November 2020 | Updated November 2026, 3 hours ago
The first 1000 people to use the link will get a free trial of Skillshare Premium Membership: https://skl.sh/keithgalli10201

In this video we see how we can take visualizations that we plot in python libraries like Matplotlib & Plotly and package them into a nice looking analytics report using the fpdf library.

Source code: github.com/keithgalli/generate-analytics-report
Data: github.com/CSSEGISandData/COVID-19
PyFPDF Docs: pyfpdf.readthedocs.io/en/latest
Helpful blog post mentioned: towardsdatascience.com/covid-19-map-animation-with-python-in-5-minutes-2d6246c32e54

Thank you to Skillshare for sponsoring this video!

-------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli
Twitter | twitter.com/keithgalli

-------------------------
Video Timeline!
0:00 - What we will be doing in this video
1:30 - Check out Skillshare! (sponsored)
3:00 - Source code & Setup
6:37 - Python FPDF library basics
9:42 - Choosing our paper format (A4, Letter, etc)
11:54 - Adding and resizing images in our PDF!
18:52 - Helper method (which states & countries can we plot?)
21:48 - Continuing to build out our report (exploring source code)
27:17 - Adding additional pages to the report
29:09 - Adding a title to our report
32:37 - Adding a professional letterhead to report
35:00 - Plotting geographic maps with covid-19 data (plotly)
40:02 - Using datetime library to automatically grab & format yesterday’s date
43:46 - Finalizing our report
46:41 - Where are the colors set?
48:11 - Final thoughts

-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs

Practice your Python Pandas data science skills with problems on StrataScratch!
stratascratch.com/?via=keith

Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
How to Generate an Analytics Report (pdf) in Python!Python Data Science Project Ideas! (for all skill levels)Keith Galli Live StreamGenerating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)Programming More Trees in Python! (Recursion & Artwork)Pre-Flop Probabilities, Tips, & Tricks - How to win at PokerProgramming Trees in Python! (with the turtle graphics library)For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises)Quickest Ways to Win at Connect 4!Math & Variables in Python - Beginner Python Tutorial #1How to Prepare for a Programming Interview! (Tips & Tricks)Ask me anything! (data science, LLMs, landing a job, and more)
Keith Galli |

How to Generate an Analytics Report (pdf) in Python!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER