Automate Excel reports with Python | Query database with Pandas | Split and save Dataframe to file

preview_player
Показать описание
Excel is a powerful and widely used tool for data analysis. In this video, we will look at how to automate excel reports with Python. How to query a database and import data into a dataframe. Slice and dice this data in a dataframe. How to use OS module to create a directory structure and finally save the files in the directory.

SQL Server ODBC driver 11 for SQL Server for Windows

Command to install pyodbc package: pip install pyodbc

GitHub repo link for excel file, Notebook and SQL code

GitHub link for AdventureWorks2012 database file

How to install Pycharm IDE on windows:

Getting started with Jupyter Notebook:

Video Outline!
0:00 - Intro: business scenario
0:48 - Data Overview
1:50 - Import required libraries
2:40 - Create Database connection
3:40 - Importing the data used in this video
5:07 - Split dataframe per requirement
5:37 - Create Folder structure
7:29 - Execute code

Рекомендации по теме
Комментарии
Автор

Thanks for the amazing tutorial, savior

daramgk
Автор

How about from MySQL to Python? Thank you to this. I've learned so much.

mezzzooo