SQL + Python: Master Data Analysis and Create PDF Reports
Coding Is Fun Coding Is Fun
101K subscribers
55,004 views
1.5K

 Published On Mar 5, 2023

๐Ÿ‘‰ Explore All My Excel Solutions: https://pythonandvba.com/solutions

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
In this tutorial, I'll show you how to use Python and SQL to transform your data into stunning PDF reports. Whether you're an analyst, a business owner, or just looking to create professional-looking reports for your own use, this tutorial will guide you step-by-step through the process.

First, I'll show you how to set up a SQLite database and load sample data into it using Python. Next, I'll demonstrate how to use SQL queries to extract the data you need from the database. Then, I'll use Pandas to manipulate and transform the data, and show you how to create interactive charts with Plotly Express.

Once we have our data prepped and ready, I'll use the FPDF library to generate a beautiful PDF report.

Whether you're a beginner or an experienced Python user, this tutorial will give you the skills you need to create stunning PDF reports with ease. Follow along, and transform your data into stunning reports that will impress your audience!

๐ŸŒ ๐—Ÿ๐—œ๐—ก๐—ž๐—ฆ:
โ–ถ Source Code: https://github.com/Sven-Bo/PDF-Report...
โ–ถ SQLite Viewer Web App: https://sqliteviewer.app/

โญ ๐—ง๐—œ๐— ๐—˜๐—ฆ๐—ง๐—”๐— ๐—ฃ๐—ฆ:
0:00 - Introduction
0:33 - Explaining Database Tables
2:05 - Creating Database with Python
3:04 - Inspecting Database
3:53 - Installing & Importing Dependencies
4:23 - Define Paths and Charts
5:24 - Total Sales by Month
8:36 - Total Sales by Product
9:20 - Top Customers by Sales
9:54 - Create PDF Report
11:22 - SQL vs Pandas
12:11 - Close Database Connection
12:48 โ€“ Outro


๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
๐Ÿ†“ใ€๐—™๐—ฅ๐—˜๐—˜ใ€‘Excel Add-in (๐— ๐˜†๐—ง๐—ผ๐—ผ๐—น๐—•๐—ฒ๐—น๐˜): https://pythonandvba.com/mytoolbelt
๐Ÿ“Š Dashboard Excel Add-In (๐—š๐—ฟ๐—ฎ๐—ณ๐—น๐˜†): https://pythonandvba.com/grafly
๐ŸŽจ Cartoon Charts Excel Add-In (๐—–๐˜‚๐˜๐—ฒ๐—ฃ๐—น๐—ผ๐˜๐˜€): https://pythonandvba.com/cuteplots
๐Ÿคช Fun Emoji Excel Add-In (๐—˜๐—บ๐—ผ๐—ท๐—ถ๐—ณ๐˜†): https://pythonandvba.com/emojify
๐Ÿ“‘ Excel Templates: https://pythonandvba.com/go/excel-tem...
๐ŸŽ“ My Courses: https://pythonandvba.com/go/courses
๐Ÿ“š Books, Tools, and More: https://pythonandvba.com/resources


๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
๐Ÿ”— LinkedIn: ย ย /ย sven-bosauย ย 
๐Ÿ“ธ Instagram: ย ย /ย codingisfun_officialย ย 
๐Ÿ’ป GitHub: https://github.com/Sven-Bo
๐Ÿ’ฌ Discord: https://pythonandvba.com/discord
๐Ÿ“ฌ Contact: https://pythonandvba.com/contact


โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
If you want to support this channel, you can buy me a coffee here:
โ–ถ https://pythonandvba.com/coffee-donation

show more

Share/Embed