25 - Preparing Excel Headers Using Openpyxl - Part 1 - Django | DRF | React w. Data Analysis

Опубликовано: 23 Октябрь 2024
на канале: Sugarloaf And a Cup of Joe
1,212
20

Openpyxl readthedocs page:
https://openpyxl.readthedocs.io/en/st...

About this video:
This is where the real fun starts! In this video we'll install openpyxl to load and start looking at the insides of the excel file. As a warmup, we'll start preparing the headers use it for extracting the rest of the data.

Video Content:
00:00 Intro
00:35 Install Openpyxl
01:09 Load Excel workbook
02:05 Get all worksheet names from Excel file and create loop that iterates through those sheets
03:45 Get pollutant name from sheet names and get_or_create Pollutant object using that name
06:22 Start getting header_row, headers (mapping) and units information for each sheet
10:58 Check what data we can get from a Openpyxl worksheet using debugger
13:19 Get headers_row (warning: indentation error - fixed at the end of the video)
17:02 Start processing headers
22:33 Get and store units
27:36 Recap using debugger to see how the program works (plus indentation fix)


About this tutorial:
The primary goal of this tutorial is to take you through the steps of creating a solid Django portfolio project that will stand out when you talk to your future employer.
Check out tutorial's intro to see if it's something for you:
   • 01 - Introduction to the course - Dja...  

Tutorial repo:
https://github.com/SugarloafAndACupOf...

Please hit SUBSCRIBE if you wanna get the notifications about the new content!
Also, like the hell out of this video if you find it useful/interesting!
Follow us on Facebook:   / sugarloaf-and-a-cup-of-joe-101638761829670  
and Instagram:   / sugarloaf_and_a_cup_of_joe