• Python Lab1 Excel openpyxl

  • Visual Programming
  • By: RL Zimmerman
  • Narrated by: Virtual Voice
  • Length: 1 hr and 29 mins

Access a growing selection of included Audible Originals, audiobooks, and podcasts.
You will get an email reminder before your trial ends.
Audible Plus auto-renews for $7.95/mo after 30 days. Upgrade or cancel anytime.
Python Lab1 Excel openpyxl  By  cover art

Python Lab1 Excel openpyxl

By: RL Zimmerman
Narrated by: Virtual Voice
Try for $0.00

$7.95 a month after 30 days. Cancel anytime.

Buy for $3.99

Buy for $3.99

Pay using card ending in
By confirming your purchase, you agree to Audible's Conditions of Use and Amazon's Privacy Notice. Taxes where applicable.
Background images

This title uses virtual voice narration

Virtual voice is computer-generated narration for audiobooks

Publisher's summary

#1 New Release - also see other books in the series:
"Python - Learn a New Skill Today: Lab 2: Business Expenses" and
"Python Coding - One Year Later: A Treasure Trove of Practical and Simple Examples

Are you curious about the Python language and wondering how to read and write Excel files? This book is a hands-on lab with simple code examples that perform one basic task: compare two Excel files and output an Excel file of differences. At the end of the lab, you will know enough about Python to work with your own Excel files, even if you’re new to Python or programming.

My examples use the free Anaconda data science platform Python 3.7, running on a Windows computer, utilizing the Spyder application. The step-by-step examples walk through each line of code, with screenshots of the corresponding Excel files so you can follow along as the program moves through the code. In the course of the lab, you’ll learn these Python concepts.

  1. What is a Library?
  2. Comments
  3. Strings, Types, Tuples, and Variables
  4. If…else statements for comparing data
  5. While loops for working with rows of Excel data
  6. Working with the file system (files/directories)
  7. Creating functions and importing them into your main code file
  8. Working with Excel files using openpyxl

The lab has two parts. Part 1 accomplishes the basic tasks to compare the two Excel files. I think of this as the core code that gets the job done. Part 2 adds some nice-to-have features.

  • Format headings and column widths in the output Excel file
  • Search for strings and substrings
  • Find New Items or Retired Items
  • Compare Dates
  • Delete Rows
  • Delete Worksheets
  • Check if the output Excel file already exists in your filesystem, and delete it if it does exist
  • Create functions and call them from your main code file.

Please note, I don’t attempt to cover all aspects of Python, only those concepts needed to complete this lab. If you said, "Show me what I need to start using Python with Excel files" this lab answers that simple question. After you complete the lab, you’ll definitely be able to say you can program in Python.

Python is really powerful, and I hope you enjoy the lab and want to continue to expand your Python skills in the future. In my opinion, a working code example takes all the guesswork out of programming, leaving just the fun of learning something new. You don’t have to wonder if you have the correct indentation, your counter is in the right place, or if you forgot the colon at the end of the line when you defined your function.

Are you ready? Let’s get started!

More from the same

Love Books? You'll Love Audible.

Placeholder Image Alt Text

Transform your day

Replace endless scrolling with endless listening. Chores can be fun.

Placeholder Image Alt Text

Listen everywhere

Download titles to listen offline, wherever you are in the world.

Placeholder Image Alt Text

Carry your entire Library

Your stories go where you go. Audiobooks don’t weigh a thing.

Placeholder Image Alt Text

Listen and learn

Discover stories that can change your mind, your well-being, and your life.

Placeholder Image Alt Text

Reach your reading goals

You can’t turn pages while you drive—but you can press play.

Placeholder Image Alt Text

Find your niche

WIth thousands of titles to explore, there’s something for everyone.

Try for $0.00 $14.95 a month after 30 days. Cancel anytime.

What listeners say about Python Lab1 Excel openpyxl

Average customer ratings

Reviews - Please select the tabs below to change the source of reviews.