What Python can do for your work

Why Python is worth learning for data and office automation, and what you'll be able to do by the end of the course.

Module 1: Getting started · Lesson 1 of 18 · 12 min read · Free

Picture Halima, an operations officer at a distribution company in Lagos. Every Monday morning she gets six Excel files, one from each branch. She copies them into one sheet, fixes the prices someone typed as "₦12,500" instead of 12500, removes the rows the system exported twice, and builds the same summary for her manager. It takes her about four hours, every week, and one wrong paste can ruin the whole report.

After this course, Halima's Monday looks different. She drops the six files into a folder, runs a Python script, and two minutes later she has a clean, combined file and a formatted Excel report with a summary per branch and a chart. Same steps, same result, every week. She spends the four hours on work that needs a human.

What Python is

Python is a programming language: a way of giving a computer precise, step-by-step instructions. It's one of the most popular languages in the world, and for good reasons:

  • It reads almost like English. if total > 100000: means what it looks like it means.
  • It's free, and runs on Windows, Mac, Linux, and in your browser.
  • It has ready-made toolkits, called libraries, for almost everything. The one you'll use most is pandas, which works with tables of data the way Excel does, but with code.

Python or Excel?

When to reach for Excel, and when Python helps more

You don't have to choose. Excel is brilliant for looking at data, quick sums and sharing with colleagues. Python is better when:

  • the same job repeats every day, week or month;
  • the data is messy and needs the same fixes every time;
  • there are many files to combine, or one file per branch to create;
  • the data is too big for Excel to handle comfortably;
  • you need a record of every step, so someone else can check it or run it.

What you'll be able to do

By the end of the course you'll load sales data from CSV and Excel files, clean it, answer business questions like "Which branch grew fastest?", combine many files into one, and produce Excel reports with charts, automatically.

Check yourself

Answer in your head first, then open each question to see the answer and why.

  1. When is Python especially useful compared with doing the work by hand in Excel?

    • A When the same cleaning and reporting job repeats every week
    • B When you need to type one number into one cell
    • C When you want to change a font colour
    • D Python is never better than Excel
    Show the answer

    A) When the same cleaning and reporting job repeats every week — Python shines on repeated, messy or multi-file jobs, because the script does the same steps the same way every time.

  2. What is pandas?

    • A A Python library for working with tables of data
    • B A type of spreadsheet file
    • C A paid version of Python
    • D An antivirus program
    Show the answer

    A) A Python library for working with tables of data — pandas is a free library that loads, cleans and summarises tables, much like Excel but with code.

  3. Which of these is true about Python?

    • A It's free and runs on Windows, Mac, Linux and in the browser
    • B It only runs on expensive computers
    • C You must buy a licence every year
    • D It can only be used to build games
    Show the answer

    A) It's free and runs on Windows, Mac, Linux and in the browser — Python is free and runs almost everywhere, including in Google Colab in your browser.

More free lessons: Lists and loops · Loading data and taking a first look · Fixing text and numbers stored as text · Combining many files into one · Using AI coding assistants wisely