Search⌘ K

Debugging apply (and friends)

Explore methods to debug pandas functions like apply, assign, groupby apply, agg, transform, and pipe. Understand what objects are passed into these functions and learn how to inspect and manipulate them effectively for better data analysis.

We'll cover the following...

It can be confusing to keep track of what pandas passes around when we call apply, assign, groupby(...)apply, groupby(...)agg, groupby(...)transform, pipe, and others. What’s getting passed in? A Series, DataFrame, group? One answer is to look at the documentation, which is generally good (although there are some holes). Also, it can be useful to have access to the object being passed ...