Python in Excel! Part 8 - Applying a data cleaning function to grouped data! 🐍🤩

Опубликовано: 19 Февраль 2026
на канале: flexyourdata
2,605
74

Continuing the cleaning of the dataset I've been looking at in other videos.

In this video:

1. Using df.groupby to group a DataFrame by a column

2. Converting text into a timedelta object, which is similar to a PQ duration, so we can use arithmetic on the values

3. Applying a custom function to the groups in grouped data

4. Removing columns from a DataFrame

5. Renaming columns in a DataFrame

As I'm using Python in Excel more, I'm starting to really appreciate the 2D nature of the grid and the immediate feedback of executing several cells of Python code.

Small change, view the result, another small change, view the result.

It's an incredibly intuitive way of working!

Yesterday the audience for Python in Excel was increased - did you get access? 💬

#data #analytics #python #excel #pythoninexcel